From deeb507bfd23d4b547f49332ce216ff14db4308c Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Wed, 19 Jun 2013 00:24:08 +0100 Subject: Add jq.string_to_json --- tests/jq_tests.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'tests') diff --git a/tests/jq_tests.py b/tests/jq_tests.py index 0bef31f..0442459 100644 --- a/tests/jq_tests.py +++ b/tests/jq_tests.py @@ -25,3 +25,11 @@ def output_elements_are_separated_by_newlines(): "1\n2\n3", jq.string_to_string(".[]", "[1,2,3]") ) + + +@istest +def string_to_json_parses_json_output(): + assert_equal( + [1, 2, 3], + jq.string_to_json("[.[]]", "[1,2,3]") + ) -- cgit v1.2.3