summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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