jshon: fix test (#34672)

This commit is contained in:
Jan Viljanen 2018-12-01 10:49:16 +01:00 committed by FX Coudert
parent 434d28a244
commit 04bf1b5ba5

View file

@ -22,6 +22,10 @@ class Jshon < Formula
end end
test do test do
assert_equal "3", pipe_output("#{bin}/jshon -l", "[true,false,null]").strip (testpath/"test.json").write <<~EOS
{"a":1,"b":2}
EOS
assert_equal "2", pipe_output("#{bin}/jshon -l < test.json").strip
end end
end end