From f32acaf99c209c1fd7623cc7dc827fec52979d76 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Wed, 13 Jul 2022 14:23:49 -0400 Subject: tests: Add tests for parsing failures in more locations --- tests/tests.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'tests') 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' -- cgit v1.2.3