From f741591d203f59faf6e041cbc6b6974ad2246144 Mon Sep 17 00:00:00 2001 From: "Chris West (Faux)" Date: Thu, 1 Oct 2015 20:31:42 +0100 Subject: initial commit --- test.sh | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 test.sh (limited to 'test.sh') diff --git a/test.sh b/test.sh new file mode 100755 index 0000000..76e4e12 --- /dev/null +++ b/test.sh @@ -0,0 +1,8 @@ +#!/bin/bash +set -eu +T=$(mktemp) +trap "rm $T" EXIT +echo '{ "a": 5, "b": {"c": 6, "d": "hello" } }' > $T +python ghetto_json path=$T a=7 b.c=yellow b.d=unset +diff -u <(printf '{\n "a": 7,\n "b": {\n "c": "yellow"\n }\n}') $T + -- cgit v1.2.1