diff options
author | Dan Rosen <danr@chalmers.se> | 2014-07-07 17:37:29 -0700 |
---|---|---|
committer | Dan Rosen <danr@chalmers.se> | 2014-07-07 17:37:29 -0700 |
commit | 79eae1e70e52bde8acfbfb2a09a0560c7319b224 (patch) | |
tree | 6dd209ac08a7207882e876e3659204314d256a9d /Test/dafny3 | |
parent | 661faf59f8e1003cdbf339260d1293e8dd77f2df (diff) |
Tidy up two files in test suite
Diffstat (limited to 'Test/dafny3')
-rw-r--r-- | Test/dafny3/GenericSort.dfy | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Test/dafny3/GenericSort.dfy b/Test/dafny3/GenericSort.dfy index 36967ab2..53d98bc2 100644 --- a/Test/dafny3/GenericSort.dfy +++ b/Test/dafny3/GenericSort.dfy @@ -1,3 +1,6 @@ +// RUN: %dafny /compile:0 /dprint:"%t.dprint" "%s" > "%t"
+// RUN: %diff "%s.expect" "%t"
+
abstract module TotalOrder {
type T // the type to be compared
static predicate method Leq(a: T, b: T) // Leq(a,b) iff a <= b
@@ -137,7 +140,6 @@ module Client { // Call the sorting routine to sort the array
IntSort.InsertionSort(a);
// Check the answer
-// assert IntSort.Sorted(a, 0, a.Length);
assert IntSort.O.Leq(a[0], a[1]); // lemma
assert IntSort.O.Leq(a[1], a[2]); // lemma
assert IntSort.O.Leq(a[2], a[3]); // lemma
|