diff --git a/tests.sh b/tests.sh index 3b25f336f9806e14faa0e1a0459d84375d545efb..d329d33f939fd7cfe4975a21a033357c9b3c433b 100755 --- a/tests.sh +++ b/tests.sh @@ -14,31 +14,4 @@ export name='John' template --output "$outfile" "$infile" test "$(cat $outfile)" = "$name" -echo Testing JSON parsing. -export json='{"a": 1, "b": 2}' -echo '{{ (json|from_json)["a"] }}' > "$infile" -test "$(template $infile)" = "1" - -echo Testing JSON output. -echo '{{ [1, 1+2, 3] | to_json }}' > "$infile" -test "$(template $infile)" = '[1, 3, 3]' - -echo Testing YAML parsing. -export yaml='a: 1 -b: 2' -echo '{{ (yaml|from_yaml)["a"] }}' > "$infile" -test "$(template $infile)" = "1" - -echo Testing YAML output. -echo '{{ [1, 1+2, 3] | to_yaml }}' > "$infile" -test "$(template $infile)" = '[1, 3, 3]' - -echo Testing pprint. -echo '{{ [1, ] + [2, ] }}' > "$infile" -test "$(template $infile)" = "[1, 2]" - -# echo Testing combining dictionaries. -# echo '{{ {"a": 1, "b": 2}|combine({"a": 11, "c": 33}) }}' > "$infile" -# test "$(template $infile)" = "{'a': 11, 'c': 33, 'b': 2}" - rm "$infile" "$outfile"