diff options
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/jq_old_tests.py | 4 | ||||
| -rw-r--r-- | tests/jq_tests.py | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/tests/jq_old_tests.py b/tests/jq_old_tests.py index 9393cce..1beafcf 100644 --- a/tests/jq_old_tests.py +++ b/tests/jq_old_tests.py @@ -79,6 +79,10 @@ def test_value_error_is_raised_if_program_is_invalid(): "jq: error: syntax error, unexpected INVALID_CHARACTER, expecting $end (Unix shell quoting issues?) at <top-level>, line 1:\n!\njq: 1 compile error", # jq 1.7 "jq: error: syntax error, unexpected INVALID_CHARACTER, expecting end of file (Unix shell quoting issues?) at <top-level>, line 1:\n!\njq: 1 compile error", + # jq 1.6 -win + "jq: error: syntax error, unexpected INVALID_CHARACTER, expecting $end (Windows cmd shell quoting issues?) at <top-level>, line 1:\n!\njq: 1 compile error", + # jq 1.7 -win + "jq: error: syntax error, unexpected INVALID_CHARACTER, expecting end of file (Windows cmd shell quoting issues?) at <top-level>, line 1:\n!\njq: 1 compile error", ] assert str(error) in expected_error_strs diff --git a/tests/jq_tests.py b/tests/jq_tests.py index 62b3ae0..81eb79b 100644 --- a/tests/jq_tests.py +++ b/tests/jq_tests.py @@ -199,6 +199,10 @@ def test_value_error_is_raised_if_program_is_invalid(): "jq: error: syntax error, unexpected INVALID_CHARACTER, expecting $end (Unix shell quoting issues?) at <top-level>, line 1:\n!\njq: 1 compile error", # jq 1.7 "jq: error: syntax error, unexpected INVALID_CHARACTER, expecting end of file (Unix shell quoting issues?) at <top-level>, line 1:\n!\njq: 1 compile error", + # jq 1.6 -win + "jq: error: syntax error, unexpected INVALID_CHARACTER, expecting $end (Windows cmd shell quoting issues?) at <top-level>, line 1:\n!\njq: 1 compile error", + # jq 1.7 -win + "jq: error: syntax error, unexpected INVALID_CHARACTER, expecting end of file (Windows cmd shell quoting issues?) at <top-level>, line 1:\n!\njq: 1 compile error", ] assert str(error) in expected_error_strs |
