summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2020-04-18 18:51:16 +0100
committerMichael Williamson <mike@zwobble.org>2020-04-18 18:51:16 +0100
commit79c418d19c985e6c1882556f48c80a236ff56d8d (patch)
tree8264d7ec9dbf2e4922e73f8d0e955fd4cf57e600 /tests
parent764c8333faf3c630cbff5e562bf8c22a1676265e (diff)
Allow retrieval of original program string
Diffstat (limited to 'tests')
-rw-r--r--tests/jq_tests.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/jq_tests.py b/tests/jq_tests.py
index 7b82794..17dfc0c 100644
--- a/tests/jq_tests.py
+++ b/tests/jq_tests.py
@@ -189,3 +189,9 @@ def repr_of_compile_result_is_compilation_string():
program = jq.compile(".")
repr_string = repr(program)
assert_equal("jq.compile({!r})".format("."), repr_string)
+
+
+@istest
+def program_string_can_be_retrieved_from_program():
+ program = jq.compile(".")
+ assert_equal(".", program.program_string)