We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8972c6d commit 8144d4cCopy full SHA for 8144d4c
1 file changed
test/json/json_parser_test.rb
@@ -219,7 +219,9 @@ def test_parse_arrays
219
def test_parse_json_primitive_values
220
assert_raise(JSON::ParserError) { parse('') }
221
assert_raise(TypeError) { parse(nil) }
222
- assert_raise(JSON::ParserError) { parse(' /* foo */ ') }
+ EnvUtil.suppress_warning do # still no warning in JRuby verions
223
+ assert_raise(JSON::ParserError) { parse(' /* foo */ ') }
224
+ end
225
assert_equal nil, parse('null')
226
assert_equal false, parse('false')
227
assert_equal true, parse('true')
0 commit comments