jshon: fix test (#34672)
This commit is contained in:
parent
434d28a244
commit
04bf1b5ba5
1 changed files with 5 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue