summaryrefslogtreecommitdiff
path: root/Test
diff options
context:
space:
mode:
authorGravatar Jason Koenig <unknown>2011-06-29 18:06:59 -0700
committerGravatar Jason Koenig <unknown>2011-06-29 18:06:59 -0700
commit90a4b29f5e76ba3de26507b742e0e1675ccb32e1 (patch)
treeadb9c1c8ad80716a8ae1dca47ecce0dadca3032e /Test
parent5a727a4d48b45860bd21d4244c3cceb4e617a9b7 (diff)
parent0796ae97021a8b93b939a6b89986449eb3ff605a (diff)
Merge
Diffstat (limited to 'Test')
-rw-r--r--Test/dafny0/Answer7
-rw-r--r--Test/dafny0/SmallTests.dfy16
2 files changed, 22 insertions, 1 deletions
diff --git a/Test/dafny0/Answer b/Test/dafny0/Answer
index 25180c13..51d3efcd 100644
--- a/Test/dafny0/Answer
+++ b/Test/dafny0/Answer
@@ -200,8 +200,13 @@ Execution trace:
(0,0): anon24_Then
(0,0): anon15
(0,0): anon25_Else
+SmallTests.dfy(347,12): Error: assertion violation
+Execution trace:
+ (0,0): anon0
+ (0,0): anon8_Then
+ (0,0): anon7
-Dafny program verifier finished with 43 verified, 14 errors
+Dafny program verifier finished with 44 verified, 15 errors
-------------------- Definedness.dfy --------------------
Definedness.dfy(8,7): Error: possible division by zero
diff --git a/Test/dafny0/SmallTests.dfy b/Test/dafny0/SmallTests.dfy
index ac7286e9..8393b1c7 100644
--- a/Test/dafny0/SmallTests.dfy
+++ b/Test/dafny0/SmallTests.dfy
@@ -330,3 +330,19 @@ class SomeType
}
}
}
+
+// ----------------------- tests of some theory axioms --------
+
+method TestSequences0()
+{
+ var s := [0, 2, 4];
+ if (*) {
+ assert 4 in s;
+ assert 0 in s;
+ assert 1 !in s;
+ } else {
+ assert 2 in s;
+ assert exists n :: n in s && -3 <= n && n < 2;
+ }
+ assert 7 in s; // error
+}