testscript/testdata/testscript_notfound.txt
raw| 1 | # Check that unknown commands output a useful error message |
| 2 | |
| 3 | ! testscript notfound |
| 4 | stdout 'unknown command "notexist"' |
| 5 | |
| 6 | ! testscript negation |
| 7 | stdout 'unknown command "!exists" \(did you mean "! exists"\?\)' |
| 8 | |
| 9 | ! testscript misspelled |
| 10 | stdout 'unknown command "exits" \(did you mean "exists"\?\)' |
| 11 | |
| 12 | -- notfound/script.txt -- |
| 13 | notexist |
| 14 | -- negation/script.txt -- |
| 15 | !exists file |
| 16 | -- misspelled/script.txt -- |
| 17 | exits file |