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.
2 parents 980ac81 + b683d5b commit eaa7352Copy full SHA for eaa7352
test/fast_jsonparser_test.rb
@@ -35,6 +35,12 @@ def test_json_parse_is_working
35
assert_equal result[:a], "Alpha"
36
end
37
38
+ def test_string_encoding
39
+ result = FastJsonparser.parse('"École"')
40
+ assert_equal Encoding::UTF_8, result.encoding
41
+ assert_equal "École", result
42
+ end
43
+
44
def test_file_stream_is_working
45
assert_nil FastJsonparser.load_many('./benchmark/nginx_json_logs.json') {}
46
0 commit comments