From 79c418d19c985e6c1882556f48c80a236ff56d8d Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Sat, 18 Apr 2020 18:51:16 +0100 Subject: Allow retrieval of original program string --- tests/jq_tests.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tests') 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) -- cgit v1.2.3