mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Ignore warnings about ambiguous first argument of regexp with assert match.
This commit is contained in:
parent
f630359d9b
commit
9eecd7a2fd
4 changed files with 16 additions and 16 deletions
|
|
@ -27,15 +27,15 @@ class JSONCommonInterfaceTest < Test::Unit::TestCase
|
|||
end
|
||||
|
||||
def test_parser
|
||||
assert_match /::Parser\z/, JSON.parser.name
|
||||
assert_match(/::Parser\z/, JSON.parser.name)
|
||||
end
|
||||
|
||||
def test_generator
|
||||
assert_match /::Generator\z/, JSON.generator.name
|
||||
assert_match(/::Generator\z/, JSON.generator.name)
|
||||
end
|
||||
|
||||
def test_state
|
||||
assert_match /::Generator::State\z/, JSON.state.name
|
||||
assert_match(/::Generator::State\z/, JSON.state.name)
|
||||
end
|
||||
|
||||
def test_create_id
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue