|
1 | 1 | // Generating and Running Path-Based Tests:
|
2 | 2 | // 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" |
4 | 4 |
|
| 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. |
5 | 10 | // 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* |
7 | 12 | // CHECK: .*Evaluating the position: checked=yes, checkmate=yes, pawn is attacking*
|
8 | 13 | // CHECK: .*Evaluating the position: checked=yes, checkmate=no, pawn is attacking*
|
9 | 14 | // CHECK: .*Evaluating the position: checked=no, checkmate=no*
|
10 |
| -// CHECK: .*Evaluating the position: checked=yes, checkmate=yes, knight is attacking* |
11 | 15 | // CHECK: .*Evaluating the position: checked=yes, checkmate=no, knight is attacking*
|
12 | 16 |
|
13 | 17 | include "Inputs/TestGenerationShared.dfy"
|
|
0 commit comments