summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorYusuke Endoh <mame@ruby-lang.org>2020-08-18 14:36:39 +0900
committerYusuke Endoh <mame@ruby-lang.org>2020-08-18 14:36:39 +0900
commit701217572f865375b137d2830d4da0c3e78de046 (patch)
tree135082ce0ffc26f239ad20622a9eb3265a12ce99 /test
parentbc00e6aa909631c995473bc2f3d62fbe60b16ffe (diff)
test/fiber/test_backtrace.rb: prevent a warning
``` /home/chkbuild/chkbuild/tmp/build/20200818T033004Z/ruby/test/fiber/test_backtrace.rb:9: warning: ambiguous first argument; put parentheses or a space even after `/' operator /home/chkbuild/chkbuild/tmp/build/20200818T033004Z/ruby/test/fiber/test_backtrace.rb:15: warning: ambiguous first argument; put parentheses or a space even after `/' operator ```
Diffstat (limited to 'test')
-rw-r--r--test/fiber/test_backtrace.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/fiber/test_backtrace.rb b/test/fiber/test_backtrace.rb
index 2d637c09c8..ba05ca2983 100644
--- a/test/fiber/test_backtrace.rb
+++ b/test/fiber/test_backtrace.rb
@@ -6,13 +6,13 @@ class TestFiberBacktrace < Test::Unit::TestCase
def test_backtrace
backtrace = Fiber.current.backtrace
assert_kind_of Array, backtrace
- assert_match /test_backtrace/, backtrace[0]
+ assert_match(/test_backtrace/, backtrace[0])
end
def test_backtrace_locations
backtrace = Fiber.current.backtrace_locations
assert_kind_of Array, backtrace
- assert_match /test_backtrace_locations/, backtrace[1].label
+ assert_match(/test_backtrace_locations/, backtrace[1].label)
end
def test_local_backtrace