From 0551c469ca003176417255f19a9574312a7e7a0f Mon Sep 17 00:00:00 2001 From: Clément Pit--Claudel Date: Fri, 21 Aug 2015 19:10:06 -0700 Subject: Add a few things to the wishlist --- Test/wishlist/tooltips-on-inductive-lemmas.dfy | 12 ++++++++++++ Test/wishlist/tooltips-on-inductive-lemmas.dfy.expect | 7 +++++++ Test/wishlist/we-should-always-print-tooltips.dfy | 4 ++++ Test/wishlist/we-should-always-print-tooltips.dfy.expect | 2 ++ 4 files changed, 25 insertions(+) create mode 100644 Test/wishlist/tooltips-on-inductive-lemmas.dfy create mode 100644 Test/wishlist/tooltips-on-inductive-lemmas.dfy.expect create mode 100644 Test/wishlist/we-should-always-print-tooltips.dfy create mode 100644 Test/wishlist/we-should-always-print-tooltips.dfy.expect (limited to 'Test/wishlist') 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 -- cgit v1.2.3