Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
digama0 committed Sep 28, 2023
1 parent 98c89f5 commit 6b00a75
Show file tree
Hide file tree
Showing 13 changed files with 16 additions and 13 deletions.
2 changes: 1 addition & 1 deletion tests/anatomy.expected
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ if you want to check them.
MM> Continuous scrolling is now in effect.
MM> 0 10% 20% 30% 40% 50% 60% 70% 80% 90% 100%
..................................................
All proofs in the database were verified.
All proofs in the database were verified in x.xx s.
2 changes: 1 addition & 1 deletion tests/big-unifier.expected
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ if you want to check them.
MM> Continuous scrolling is now in effect.
MM> 0 10% 20% 30% 40% 50% 60% 70% 80% 90% 100%
..................................................
All proofs in the database were verified.
All proofs in the database were verified in x.xx s.
2 changes: 1 addition & 1 deletion tests/demo0-includer.expected
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ if you want to check them.
MM> Continuous scrolling is now in effect.
MM> 0 10% 20% 30% 40% 50% 60% 70% 80% 90% 100%
..................................................
All proofs in the database were verified.
All proofs in the database were verified in x.xx s.
2 changes: 1 addition & 1 deletion tests/demo0.expected
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ if you want to check them.
MM> Continuous scrolling is now in effect.
MM> 0 10% 20% 30% 40% 50% 60% 70% 80% 90% 100%
..................................................
All proofs in the database were verified.
All proofs in the database were verified in x.xx s.
2 changes: 1 addition & 1 deletion tests/disjoint1.expected
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ requires that variables "x" and "y" be disjoint. But "x" was substituted with
"x" and "y" was substituted with "x". These substitutions have variable "x" in
common.

All proofs in the database were verified.
All proofs in the database were verified in x.xx s.
2 changes: 1 addition & 1 deletion tests/disjoint2.expected
Original file line number Diff line number Diff line change
Expand Up @@ -135,4 +135,4 @@ requires that variables "x" and "y" be disjoint. But "x" was substituted with
Variables "w" and "y" do not have a disjoint variable requirement in the
assertion being proved, "almostgood".
...................
All proofs in the database were verified.
All proofs in the database were verified in x.xx s.
2 changes: 1 addition & 1 deletion tests/disjoint3.expected
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ requires that variables "x" and "y" be disjoint. But "x" was substituted with
Variables "x" and "y" do not have a disjoint variable requirement in the
assertion being proved, "bad".

All proofs in the database were verified.
All proofs in the database were verified in x.xx s.
2 changes: 1 addition & 1 deletion tests/empty.expected
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ if you want to check them.
MM> Continuous scrolling is now in effect.
MM> 0 10% 20% 30% 40% 50% 60% 70% 80% 90% 100%

All proofs in the database were verified.
All proofs in the database were verified in x.xx s.
2 changes: 1 addition & 1 deletion tests/local-var-bad.expected
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ The variable "x" does not appear in an active "$f" statement.
MM> Continuous scrolling is now in effect.
MM> 0 10% 20% 30% 40% 50% 60% 70% 80% 90% 100%
..................................................
All proofs in the database were verified.
All proofs in the database were verified in x.xx s.
2 changes: 1 addition & 1 deletion tests/local-var-good.expected
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ if you want to check them.
MM> Continuous scrolling is now in effect.
MM> 0 10% 20% 30% 40% 50% 60% 70% 80% 90% 100%
..................................................
All proofs in the database were verified.
All proofs in the database were verified in x.xx s.
2 changes: 1 addition & 1 deletion tests/missing-dollar-p.expected
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ One error was found.
MM> Continuous scrolling is now in effect.
MM> 0 10% 20% 30% 40% 50% 60% 70% 80% 90% 100%
..................................................
All proofs in the database were verified.
All proofs in the database were verified in x.xx s.
2 changes: 1 addition & 1 deletion tests/nuniq-gram.expected
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ if you want to check them.
MM> Continuous scrolling is now in effect.
MM> 0 10% 20% 30% 40% 50% 60% 70% 80% 90% 100%
..................................................
All proofs in the database were verified.
All proofs in the database were verified in x.xx s.
5 changes: 4 additions & 1 deletion tests/run_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,10 @@ for test in "$@"; do
# which is problematic because we would have to fix all the tests every time
# a new version comes out.
# The last line is always 'MM> EXIT' which is not relevant.
echo "$result" | head -n -1 | tail -n +2 > "$outfile"
# The sed is to redact timings, which are nondeterministic
echo "$result" | head -n -1 | tail -n +2 \
| sed -e 's/ \+[0-9]\+\.[0-9]\+ s/ x.xx s/g' \
> "$outfile"

if [ "$outfile" = "/dev/null" ]; then
# If this is a run_test then we're done
Expand Down

0 comments on commit 6b00a75

Please sign in to comment.