We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0d8a04f commit 63d82ecCopy full SHA for 63d82ec
test/formatter_test.exs
@@ -15,9 +15,9 @@ defmodule Jason.FormatterTest do
15
]
16
17
for name <- @test_cases do
18
- input = File.open!("formatter_test_suite/#{name}.json") |> IO.binread(:all)
19
- pretty = File.open!("formatter_test_suite/#{name}.pretty.json") |> IO.binread(:all)
20
- min = File.open!("formatter_test_suite/#{name}.min.json") |> IO.binread(:all)
+ input = File.read!("formatter_test_suite/#{name}.json")
+ pretty = File.read!("formatter_test_suite/#{name}.pretty.json")
+ min = File.read!("formatter_test_suite/#{name}.min.json")
21
22
test "#{name} |> pretty_print" do
23
assert(pretty_print(unquote(input)) == unquote(pretty))
0 commit comments