Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"note: possible intended match here" feature needs revision #38

Open
stanislaw opened this issue Nov 30, 2019 · 1 comment
Open

"note: possible intended match here" feature needs revision #38

stanislaw opened this issue Nov 30, 2019 · 1 comment

Comments

@stanislaw
Copy link
Member

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
        ^
@stanislaw
Copy link
Member Author

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
 ^

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant