diff --git a/Formula/jshon.rb b/Formula/jshon.rb index f9b0e8a823..76c29c8b99 100644 --- a/Formula/jshon.rb +++ b/Formula/jshon.rb @@ -22,6 +22,10 @@ class Jshon < Formula end 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