Skip to content

Commit

Permalink
test/fiber/test_backtrace.rb: prevent a warning
Browse files Browse the repository at this point in the history
```
/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
```
  • Loading branch information
mame committed Aug 18, 2020
1 parent bc00e6a commit 7012175
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/fiber/test_backtrace.rb
Expand Up @@ -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
Expand Down

0 comments on commit 7012175

Please sign in to comment.