summaryrefslogtreecommitdiff
path: root/test/ruby
diff options
context:
space:
mode:
authorKazuki Tsujimoto <kazuki@callcc.net>2020-06-27 13:52:23 +0900
committerKazuki Tsujimoto <kazuki@callcc.net>2020-06-27 13:52:23 +0900
commit7a5a0dfa5e0deec3d7eec4015577fdd08a753489 (patch)
treee6c1961d1b89138998b6ca852646ff0ceaf21a76 /test/ruby
parentc9ee34a18bb833b11ce64f6d35fa0e7f1a865a14 (diff)
Suppress "assigned but unused variable" warnings
Diffstat (limited to 'test/ruby')
-rw-r--r--test/ruby/test_pattern_matching.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/ruby/test_pattern_matching.rb b/test/ruby/test_pattern_matching.rb
index 8c529851b2..e5a18c5afe 100644
--- a/test/ruby/test_pattern_matching.rb
+++ b/test/ruby/test_pattern_matching.rb
@@ -1296,7 +1296,7 @@ END
case CDeconstructCache.new([[[0]]])
in [[1]]
in [[*a]]
- true
+ a == [0]
end
end
@@ -1318,8 +1318,8 @@ END
assert_block do
case CDeconstructCache.new([[0]])
- in [1] => one
- in [0] => zero
+ in [1] => _
+ in [0] => _
true
end
end
@@ -1346,7 +1346,7 @@ END
in [*, String => x, *]
false
in [*, Symbol => x, *]
- true
+ x == :a
end
end
end