summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2025-06-14 12:51:36 +0100
committerMichael Williamson <mike@zwobble.org>2025-06-14 14:06:52 +0100
commite60c5dd60952931c3b4735c8864aab6a85aa77a4 (patch)
tree09bacdea771f2f75388a560a17ed41d0baaeadb4 /tests
parentde2b40341bd616a355d1be31e515ba30fecb0d7e (diff)
Update to jq 1.8.0
Diffstat (limited to 'tests')
-rw-r--r--tests/jq_old_tests.py12
-rw-r--r--tests/jq_tests.py12
2 files changed, 14 insertions, 10 deletions
diff --git a/tests/jq_old_tests.py b/tests/jq_old_tests.py
index 1beafcf..794eed3 100644
--- a/tests/jq_old_tests.py
+++ b/tests/jq_old_tests.py
@@ -75,14 +75,16 @@ def test_value_error_is_raised_if_program_is_invalid():
assert False, "Expected error"
except ValueError as error:
expected_error_strs = [
- # jq 1.6
+ # jq 1.6 on Unix
"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 1.6 on Windows
"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 1.7 on Unix
+ "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.7 on Windows
"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",
+ # jq 1.8
+ "jq: error: syntax error, unexpected INVALID_CHARACTER, expecting end of file at <top-level>, line 1, column 1:\n !\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 c42c862..1c45472 100644
--- a/tests/jq_tests.py
+++ b/tests/jq_tests.py
@@ -195,14 +195,16 @@ def test_value_error_is_raised_if_program_is_invalid():
assert False, "Expected error"
except ValueError as error:
expected_error_strs = [
- # jq 1.6
+ # jq 1.6 on Unix
"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 1.6 on Windows
"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 1.7 on Unix
+ "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.7 on Windows
"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",
+ # jq 1.8
+ "jq: error: syntax error, unexpected INVALID_CHARACTER, expecting end of file at <top-level>, line 1, column 1:\n !\n ^\njq: 1 compile error",
]
assert str(error) in expected_error_strs