summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/jq_tests.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/jq_tests.py b/tests/jq_tests.py
index 6b63556..7956d56 100644
--- a/tests/jq_tests.py
+++ b/tests/jq_tests.py
@@ -185,6 +185,14 @@ def unicode_strings_can_be_used_as_programs():
@istest
+def compiling_with_args_should_set_predefined_variables():
+ assert_equal(
+ 123,
+ jq.compile("$a + $b + .", args={"a": 100, "b": 20}).input(3).first()
+ )
+
+
+@istest
def repr_of_compile_result_is_compilation_string():
program = jq.compile(".")
repr_string = repr(program)