Skip to content

Commit 92f377b

Browse files
committed
Fix typo in test harness, and adjust test output
1 parent 651236c commit 92f377b

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

Source/IntegrationTests/TestFiles/LitTests/LitTest/blogposts/TestGenerationWithInliningQuantifiedDefinitions.dfy

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
11
// Generating and Running Path-Based Tests:
22
// RUN: %baredafny generate-tests %args Path %S/TestGenerationWithInliningQuantifiedDefinitions.dfy > %t-tests.dfy
3-
// RUN: %baredafny test %args --target:cs "%t-tests.dfy" >> "%t"
3+
// RUN: %baredafny test %args --target:cs "%t-tests.dfy" > "%t"
44

5+
// Syntactically, the test method has 4 paths: yes-yes, yes-no, no-yes, no-no. But the no-yes path is
6+
// not feasible.
7+
// For Path test coverage, the order in which the tests are generated depends on what
8+
// the verifier chooses to do first. Thus, if something changes in the verifier, then the CHECK lines below
9+
// may need to be permuted.
510
// RUN: %OutputCheck --file-to-check "%t" "%s"
6-
// CHECK: .*Dafny program verifier finished with 5 verified, 0 errors*
11+
// CHECK: .*Dafny program verifier finished with 4 verified, 0 errors*
712
// CHECK: .*Evaluating the position: checked=yes, checkmate=yes, pawn is attacking*
813
// CHECK: .*Evaluating the position: checked=yes, checkmate=no, pawn is attacking*
914
// CHECK: .*Evaluating the position: checked=no, checkmate=no*
10-
// CHECK: .*Evaluating the position: checked=yes, checkmate=yes, knight is attacking*
1115
// CHECK: .*Evaluating the position: checked=yes, checkmate=no, knight is attacking*
1216

1317
include "Inputs/TestGenerationShared.dfy"

0 commit comments

Comments
 (0)