summaryrefslogtreecommitdiff
path: root/Test/wishlist
diff options
context:
space:
mode:
authorGravatar Clément Pit--Claudel <clement.pitclaudel@live.com>2015-08-21 19:10:06 -0700
committerGravatar Clément Pit--Claudel <clement.pitclaudel@live.com>2015-08-21 19:10:06 -0700
commit0551c469ca003176417255f19a9574312a7e7a0f (patch)
tree8b51989dd6dbad68ebe928fa1d9e6c9ee3447f70 /Test/wishlist
parent84b52a48efda3e9658b772dbc02d34a6f6c9d16b (diff)
Add a few things to the wishlist
Diffstat (limited to 'Test/wishlist')
-rw-r--r--Test/wishlist/tooltips-on-inductive-lemmas.dfy12
-rw-r--r--Test/wishlist/tooltips-on-inductive-lemmas.dfy.expect7
-rw-r--r--Test/wishlist/we-should-always-print-tooltips.dfy4
-rw-r--r--Test/wishlist/we-should-always-print-tooltips.dfy.expect2
4 files changed, 25 insertions, 0 deletions
diff --git a/Test/wishlist/tooltips-on-inductive-lemmas.dfy b/Test/wishlist/tooltips-on-inductive-lemmas.dfy
new file mode 100644
index 00000000..1bd25437
--- /dev/null
+++ b/Test/wishlist/tooltips-on-inductive-lemmas.dfy
@@ -0,0 +1,12 @@
+// RUN: %dafny /compile:0 /print:"%t.print" /dprint:"%t.dprint" /autoTriggers:1 /printTooltips "%s" > "%t"
+// RUN: %diff "%s.expect" "%t"
+
+inductive lemma P()
+ requires Q() { // WISH the tooltip for this was broken at some point between
+ // revisions 94ee216fe0cd (1179) and bd779dda3b3d (1785)
+ P();
+}
+
+inductive predicate Q() {
+ Q()
+}
diff --git a/Test/wishlist/tooltips-on-inductive-lemmas.dfy.expect b/Test/wishlist/tooltips-on-inductive-lemmas.dfy.expect
new file mode 100644
index 00000000..4d036eef
--- /dev/null
+++ b/Test/wishlist/tooltips-on-inductive-lemmas.dfy.expect
@@ -0,0 +1,7 @@
+tooltips-on-inductive-lemmas.dfy(5,11): Info: Q
+tooltips-on-inductive-lemmas.dfy(7,2): Info: P
+tooltips-on-inductive-lemmas.dfy(11,2): Info: Q#[_k - 1]
+tooltips-on-inductive-lemmas.dfy(4,16): Info: P# {:induction _k}
+tooltips-on-inductive-lemmas.dfy(4,16): Info: P# decreases _k
+
+Dafny program verifier finished with 3 verified, 0 errors
diff --git a/Test/wishlist/we-should-always-print-tooltips.dfy b/Test/wishlist/we-should-always-print-tooltips.dfy
new file mode 100644
index 00000000..d7a55845
--- /dev/null
+++ b/Test/wishlist/we-should-always-print-tooltips.dfy
@@ -0,0 +1,4 @@
+// RUN: %dafny /compile:0 /print:"%t.print" /dprint:"%t.dprint" /autoTriggers:1 /printTooltips "%s" > "%t"
+// RUN: %diff "%s.expect" "%t"
+
+// WISH it would be great to add /printTooltips to all tests
diff --git a/Test/wishlist/we-should-always-print-tooltips.dfy.expect b/Test/wishlist/we-should-always-print-tooltips.dfy.expect
new file mode 100644
index 00000000..a1c1f7b9
--- /dev/null
+++ b/Test/wishlist/we-should-always-print-tooltips.dfy.expect
@@ -0,0 +1,2 @@
+
+Dafny program verifier finished with 0 verified, 0 errors