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 6a44481 commit cecf04fCopy full SHA for cecf04f
test/json/json_parser_test.rb
@@ -19,14 +19,14 @@ def test_construction
19
assert_equal 'test', parser.source
20
end
21
22
- def test_argument_encoding
23
- source = "{}".encode("UTF-16")
+ def test_argument_encoding_unmodified
+ source = "{}".encode(Encoding::UTF_16)
24
JSON::Parser.new(source)
25
assert_equal Encoding::UTF_16, source.encoding
26
27
28
- def test_argument_encoding_for_binary
29
- source = "{}".encode("ASCII-8BIT")
+ def test_argument_encoding_for_binary_unmodified
+ source = "{}".b
30
31
assert_equal Encoding::ASCII_8BIT, source.encoding
32
0 commit comments