summaryrefslogtreecommitdiff
path: root/Test/vacid0
diff options
context:
space:
mode:
authorGravatar wuestholz <unknown>2014-05-29 21:41:00 +0200
committerGravatar wuestholz <unknown>2014-05-29 21:41:00 +0200
commit607ef28aadb281ab61a2be493a637126e967a388 (patch)
treeaae16c049c860e443920f9c6ee31af4e35f8a800 /Test/vacid0
parentdc0a9130355352d0f47e07232d8119fc7219ccbc (diff)
Set up the same test infrastructure as in Boogie.
Diffstat (limited to 'Test/vacid0')
-rw-r--r--Test/vacid0/Composite.dfy3
-rw-r--r--Test/vacid0/Composite.dfy.expect2
-rw-r--r--Test/vacid0/LazyInitArray.dfy3
-rw-r--r--Test/vacid0/LazyInitArray.dfy.expect2
-rw-r--r--Test/vacid0/SparseArray.dfy3
-rw-r--r--Test/vacid0/SparseArray.dfy.expect2
6 files changed, 15 insertions, 0 deletions
diff --git a/Test/vacid0/Composite.dfy b/Test/vacid0/Composite.dfy
index ed376931..d5551d82 100644
--- a/Test/vacid0/Composite.dfy
+++ b/Test/vacid0/Composite.dfy
@@ -1,3 +1,6 @@
+// RUN: %dafny /compile:0 "%s" > "%t"
+// RUN: %diff "%s.expect" "%t"
+
class Composite {
var left: Composite;
var right: Composite;
diff --git a/Test/vacid0/Composite.dfy.expect b/Test/vacid0/Composite.dfy.expect
new file mode 100644
index 00000000..d903c7c5
--- /dev/null
+++ b/Test/vacid0/Composite.dfy.expect
@@ -0,0 +1,2 @@
+
+Dafny program verifier finished with 16 verified, 0 errors
diff --git a/Test/vacid0/LazyInitArray.dfy b/Test/vacid0/LazyInitArray.dfy
index 3e5a95ef..e6708e35 100644
--- a/Test/vacid0/LazyInitArray.dfy
+++ b/Test/vacid0/LazyInitArray.dfy
@@ -1,3 +1,6 @@
+// RUN: %dafny /compile:0 "%s" > "%t"
+// RUN: %diff "%s.expect" "%t"
+
class LazyInitArray<T> {
ghost var Contents: seq<T>;
var Zero: T;
diff --git a/Test/vacid0/LazyInitArray.dfy.expect b/Test/vacid0/LazyInitArray.dfy.expect
new file mode 100644
index 00000000..76f19e0d
--- /dev/null
+++ b/Test/vacid0/LazyInitArray.dfy.expect
@@ -0,0 +1,2 @@
+
+Dafny program verifier finished with 7 verified, 0 errors
diff --git a/Test/vacid0/SparseArray.dfy b/Test/vacid0/SparseArray.dfy
index 989ddfc6..06fca9f0 100644
--- a/Test/vacid0/SparseArray.dfy
+++ b/Test/vacid0/SparseArray.dfy
@@ -1,3 +1,6 @@
+// RUN: %dafny /compile:0 "%s" > "%t"
+// RUN: %diff "%s.expect" "%t"
+
class SparseArray<T> {
ghost var Contents: seq<T>;
var zero: T;
diff --git a/Test/vacid0/SparseArray.dfy.expect b/Test/vacid0/SparseArray.dfy.expect
new file mode 100644
index 00000000..249e77e5
--- /dev/null
+++ b/Test/vacid0/SparseArray.dfy.expect
@@ -0,0 +1,2 @@
+
+Dafny program verifier finished with 9 verified, 0 errors