summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2019-06-01 14:44:24 +0300
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2019-10-31 13:21:06 +0900
commitfd3873c0a32b4127e3178bf65bf5b114d3ab8de3 (patch)
tree738429b1a7c4c31a736fafb698699dcd3bb02d5e /tests
parentbbc88248581fb3c7063edd9fae00af5f7d1f18d9 (diff)
downloadjson-fd3873c0a32b4127e3178bf65bf5b114d3ab8de3.tar.gz
Ignore warnings about ambiguous first argument of regexp with assert match.
Diffstat (limited to 'tests')
-rw-r--r--tests/json_common_interface_test.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/json_common_interface_test.rb b/tests/json_common_interface_test.rb
index de88c6e..53f335e 100644
--- a/tests/json_common_interface_test.rb
+++ b/tests/json_common_interface_test.rb
@@ -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