summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar wuestholz <unknown>2014-07-15 12:56:56 +0200
committerGravatar wuestholz <unknown>2014-07-15 12:56:56 +0200
commit3d81de6e45e1a82931cd09442cb88458c86094e8 (patch)
tree7c5009e1ca82f8341cc9240cea9b16f7dd7617cb
parent264ce2c58b81f478fc0a42e03423252fdc5a1258 (diff)
Added more tests.
-rw-r--r--Test/dafny0/snapshots/Snapshots6.v0.dfy23
-rw-r--r--Test/dafny0/snapshots/Snapshots6.v1.dfy23
-rw-r--r--Test/dafny0/snapshots/Snapshots7.v0.dfy22
-rw-r--r--Test/dafny0/snapshots/Snapshots7.v1.dfy22
-rw-r--r--Test/dafny0/snapshots/runtest.snapshot2
-rw-r--r--Test/dafny0/snapshots/runtest.snapshot.expect18
6 files changed, 109 insertions, 1 deletions
diff --git a/Test/dafny0/snapshots/Snapshots6.v0.dfy b/Test/dafny0/snapshots/Snapshots6.v0.dfy
new file mode 100644
index 00000000..c3742f4b
--- /dev/null
+++ b/Test/dafny0/snapshots/Snapshots6.v0.dfy
@@ -0,0 +1,23 @@
+module M0
+{
+ class C
+ {
+ method Foo()
+ {
+ assume false;
+ }
+ }
+}
+
+
+module M1 refines M0
+{
+ class C
+ {
+ method Foo()
+ {
+ ...;
+ assert false;
+ }
+ }
+}
diff --git a/Test/dafny0/snapshots/Snapshots6.v1.dfy b/Test/dafny0/snapshots/Snapshots6.v1.dfy
new file mode 100644
index 00000000..aeb520cb
--- /dev/null
+++ b/Test/dafny0/snapshots/Snapshots6.v1.dfy
@@ -0,0 +1,23 @@
+module M0
+{
+ class C
+ {
+ method Foo()
+ {
+ assume true;
+ }
+ }
+}
+
+
+module M1 refines M0
+{
+ class C
+ {
+ method Foo()
+ {
+ ...;
+ assert false;
+ }
+ }
+}
diff --git a/Test/dafny0/snapshots/Snapshots7.v0.dfy b/Test/dafny0/snapshots/Snapshots7.v0.dfy
new file mode 100644
index 00000000..27c7da5f
--- /dev/null
+++ b/Test/dafny0/snapshots/Snapshots7.v0.dfy
@@ -0,0 +1,22 @@
+module M0
+{
+ class C
+ {
+ method Foo()
+ requires false;
+ {
+ }
+ }
+}
+
+
+module M1 refines M0
+{
+ class C
+ {
+ method Foo...
+ {
+ assert false;
+ }
+ }
+}
diff --git a/Test/dafny0/snapshots/Snapshots7.v1.dfy b/Test/dafny0/snapshots/Snapshots7.v1.dfy
new file mode 100644
index 00000000..b45dfe78
--- /dev/null
+++ b/Test/dafny0/snapshots/Snapshots7.v1.dfy
@@ -0,0 +1,22 @@
+module M0
+{
+ class C
+ {
+ method Foo()
+ requires true;
+ {
+ }
+ }
+}
+
+
+module M1 refines M0
+{
+ class C
+ {
+ method Foo...
+ {
+ assert false;
+ }
+ }
+}
diff --git a/Test/dafny0/snapshots/runtest.snapshot b/Test/dafny0/snapshots/runtest.snapshot
index d8c41b5c..8bf5b22f 100644
--- a/Test/dafny0/snapshots/runtest.snapshot
+++ b/Test/dafny0/snapshots/runtest.snapshot
@@ -1,2 +1,2 @@
-// RUN: %dafny /compile:0 /verifySnapshots:2 /verifySeparately Snapshots0.dfy Snapshots1.dfy Snapshots2.dfy Snapshots3.dfy Snapshots4.dfy Snapshots5.dfy > "%t"
+// RUN: %dafny /compile:0 /verifySnapshots:2 /verifySeparately Snapshots0.dfy Snapshots1.dfy Snapshots2.dfy Snapshots3.dfy Snapshots4.dfy Snapshots5.dfy Snapshots6.dfy Snapshots7.dfy > "%t"
// RUN: %diff "%s.expect" "%t"
diff --git a/Test/dafny0/snapshots/runtest.snapshot.expect b/Test/dafny0/snapshots/runtest.snapshot.expect
index d0a804a3..5dfa1d86 100644
--- a/Test/dafny0/snapshots/runtest.snapshot.expect
+++ b/Test/dafny0/snapshots/runtest.snapshot.expect
@@ -59,3 +59,21 @@ Dafny program verifier finished with 1 verified, 2 errors
Dafny program verifier finished with 3 verified, 0 errors
Dafny program verifier finished with 3 verified, 0 errors
+
+-------------------- Snapshots6.dfy --------------------
+
+Dafny program verifier finished with 4 verified, 0 errors
+Snapshots6.v1.dfy(20,14): Error: assertion violation
+Execution trace:
+ (0,0): anon0
+
+Dafny program verifier finished with 3 verified, 1 error
+
+-------------------- Snapshots7.dfy --------------------
+
+Dafny program verifier finished with 4 verified, 0 errors
+Snapshots7.v1.dfy(19,14): Error: assertion violation
+Execution trace:
+ (0,0): anon0
+
+Dafny program verifier finished with 3 verified, 1 error