summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/jq_tests.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/tests/jq_tests.py b/tests/jq_tests.py
index 348727c..6e9066b 100644
--- a/tests/jq_tests.py
+++ b/tests/jq_tests.py
@@ -4,7 +4,7 @@ from jq import jq
@istest
-def dot_operator_does_nothing():
+def dot_operator_does_nothing_to_string_input():
assert_equal(
"42",
str(jq(".").transform_string("42"))
@@ -12,6 +12,14 @@ def dot_operator_does_nothing():
@istest
+def dot_operator_does_nothing_to_json_input():
+ assert_equal(
+ '"42"',
+ str(jq(".").transform_json("42"))
+ )
+
+
+@istest
def can_add_one_to_each_element_of_an_array():
assert_equal(
"[2,3,4]",