summaryrefslogtreecommitdiff
path: root/test/reline/yamatanooroti/multiline_repl
diff options
context:
space:
mode:
authorStan Lo <stan001212@gmail.com>2024-03-23 22:50:51 +0000
committergit <svn-admin@ruby-lang.org>2024-03-23 22:50:57 +0000
commitf46b77596d9b88e603765c0980667a86c62e2b04 (patch)
tree1d33bff6f893079cde32f7baaf8f03dd0f5d2526 /test/reline/yamatanooroti/multiline_repl
parent8265a7531fba008eac777682124c2fb1b55e724c (diff)
[ruby/reline] Make mutated string in yamatanooroti explicitly
mutable (https://github.com/ruby/reline/pull/662) This avoids the frozen literal warning in Ruby 3.4. https://github.com/ruby/reline/commit/cccb985804
Diffstat (limited to 'test/reline/yamatanooroti/multiline_repl')
-rwxr-xr-xtest/reline/yamatanooroti/multiline_repl2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/reline/yamatanooroti/multiline_repl b/test/reline/yamatanooroti/multiline_repl
index 5205e1f5d9..66bcf51e1a 100755
--- a/test/reline/yamatanooroti/multiline_repl
+++ b/test/reline/yamatanooroti/multiline_repl
@@ -183,7 +183,7 @@ opt.on('--autocomplete-long') {
opt.on('--autocomplete-super-long') {
Reline.autocompletion = true
Reline.completion_proc = lambda { |target, preposing = nil, postposing = nil|
- c = 'A'
+ c = +'A'
2000.times.map{ s = "Str_#{c}"; c.succ!; s }.select{ |c| c.start_with?(target) }
}
}