Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion test/json/json_parser_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,9 @@ def test_parse_arrays
def test_parse_json_primitive_values
assert_raise(JSON::ParserError) { parse('') }
assert_raise(TypeError) { parse(nil) }
assert_raise(JSON::ParserError) { parse(' /* foo */ ') }
EnvUtil.suppress_warning do # still no warning in JRuby verions
assert_raise(JSON::ParserError) { parse(' /* foo */ ') }
end
assert_equal nil, parse('null')
assert_equal false, parse('false')
assert_equal true, parse('true')
Expand Down
Loading