diff options
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/jq_tests.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/jq_tests.py b/tests/jq_tests.py index bcacdca..e5b0b5e 100644 --- a/tests/jq_tests.py +++ b/tests/jq_tests.py @@ -247,6 +247,13 @@ class TestJvToPython(object): assert_equal("x", program.input(text='"x"').first()) assert_equal("xyz", program.input(text='"xyz"').first()) + def test_strings_containing_null_characters_are_preserved(self): + program = jq.compile(".") + + result = program.input("a\x00b").first() + + assert_equal("a\x00b", result) + def test_program_preserves_arrays(self): program = jq.compile(".") |
