FileCheck.py
FileCheck.py copied to clipboard
"note: possible intended match here" feature needs revision
Stanislaw@home:filecheck.py (develop)*$ echo "What is FileCheck" | ./tests/integration/tools/FileCheck/FileCheck examples/hello-world.check
/Users/Stanislaw/sandbox/code/filecheck.py/tests/integration/tools/FileCheck
examples/hello-world.check:1:10: error: CHECK: expected string not found in input
; CHECK: Hello world
^
<stdin>:1:1: note: scanning from here
What is FileCheck
^
<stdin>:1:2: note: possible intended match here
What is FileCheck
^
Stanislaw@home:filecheck.py (develop)*$ echo "What is FileCheck" | ./src/FileCheck examples/hello-world.check
/Users/Stanislaw/sandbox/code/filecheck.py/src/FileCheck
examples/hello-world.check:1:10: error: CHECK: expected string not found in input
; CHECK: Hello world
^
<stdin>:1:1: note: scanning from here
What is FileCheck
^
<stdin>:1:9: note: possible intended match here
What is FileCheck
^
Another example of difference in the algorithm:
/Users/Stanislaw/workspace/code/filecheck.py/tests/integration/tools/FileCheck
/Users/Stanislaw/workspace/code/filecheck.py/tests/integration/tests/check_commands/CHECK/three_strings/04-negative_match_first_string_scanning_for_the_best_match/filecheck.check:1:10: error: CHECK: expected string not found in input
; CHECK: foo
^
<stdin>:1:1: note: scanning from here
hello1
^
<stdin>:3:1: note: possible intended match here
fo
^
and
/Users/Stanislaw/workspace/code/filecheck.py/filecheck/FileCheck.py
/Users/Stanislaw/workspace/code/filecheck.py/tests/integration/tests/check_commands/CHECK/three_strings/04-negative_match_first_string_scanning_for_the_best_match/filecheck.check:1:10: error: CHECK: expected string not found in input
; CHECK: foo
^
<stdin>:1:1: note: scanning from here
hello1
^
<stdin>:1:2: note: possible intended match here
fo
^