summaryrefslogtreecommitdiffhomepage
path: root/test/t/string.rb
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2017-11-22 16:09:50 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2017-11-22 16:09:50 +0900
commitb4f9b031deaf7c75dad7aa10f2318bb37e268fa3 (patch)
tree6e38cc9b61330d34d09e157bca406dc1b084198c /test/t/string.rb
parent284a1d12ee6b0fdd77b042771f5db833112fc14e (diff)
downloadmruby-b4f9b031deaf7c75dad7aa10f2318bb37e268fa3.tar.gz
mruby-b4f9b031deaf7c75dad7aa10f2318bb37e268fa3.zip
Some cosmetic changes
Diffstat (limited to 'test/t/string.rb')
-rw-r--r--test/t/string.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/t/string.rb b/test/t/string.rb
index c9041469e..6351d5d98 100644
--- a/test/t/string.rb
+++ b/test/t/string.rb
@@ -367,9 +367,9 @@ assert('String#gsub', '15.2.10.5.18') do
assert_equal('aBcaBc', 'abcabc'.gsub('b', 'B'), 'gsub without block')
assert_equal('aBcaBc', 'abcabc'.gsub('b'){|w| w.capitalize }, 'gsub with block')
assert_equal('$a$a$', '#a#a#'.gsub('#', '$'), 'mruby/mruby#847')
- assert_equal('$a$a$', '#a#a#'.gsub('#'){|w| '$' }, 'mruby/mruby#847 with block')
+ assert_equal('$a$a$', '#a#a#'.gsub('#'){|_w| '$' }, 'mruby/mruby#847 with block')
assert_equal('$$a$$', '##a##'.gsub('##', '$$'), 'mruby/mruby#847 another case')
- assert_equal('$$a$$', '##a##'.gsub('##'){|w| '$$' }, 'mruby/mruby#847 another case with block')
+ assert_equal('$$a$$', '##a##'.gsub('##'){|_w| '$$' }, 'mruby/mruby#847 another case with block')
assert_equal('A', 'a'.gsub('a', 'A'))
assert_equal('A', 'a'.gsub('a'){|w| w.capitalize })
assert_equal("<a><><>", 'a'.gsub('a', '<\0><\1><\2>'))