diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2022-07-13 14:23:49 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2022-07-13 14:23:49 -0400 |
commit | f32acaf99c209c1fd7623cc7dc827fec52979d76 (patch) | |
tree | 4b341b7f761a967b96dd01044e24c4f4746844a3 /tests | |
parent | 46e3798fbaa5c41d73651e814f9f3212ab4c20eb (diff) | |
download | bfs-f32acaf99c209c1fd7623cc7dc827fec52979d76.tar.xz |
tests: Add tests for parsing failures in more locations
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/tests.sh | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/tests.sh b/tests/tests.sh index aec670a..7854a65 100755 --- a/tests/tests.sh +++ b/tests/tests.sh @@ -742,6 +742,9 @@ bfs_tests=( test_expr_path_flag test_unexpected_operator + test_and_incomplete + test_or_incomplete + test_comma_incomplete test_typo @@ -3359,6 +3362,18 @@ function test_unexpected_operator() { fail invoke_bfs \! -o -print } +function test_and_incomplete() { + fail invoke_bfs -print -a +} + +function test_or_incomplete() { + fail invoke_bfs -print -o +} + +function test_comma_incomplete() { + fail invoke_bfs -print , +} + BOL='\n' EOL='\n' |