diff options
Diffstat (limited to 'test/ruby/test_string.rb')
| -rw-r--r-- | test/ruby/test_string.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/ruby/test_string.rb b/test/ruby/test_string.rb index dd3a0349b5..1b23d832f2 100644 --- a/test/ruby/test_string.rb +++ b/test/ruby/test_string.rb @@ -659,7 +659,9 @@ CODE assert_raise(ArgumentError) {S("mypassword".encode(enc)).crypt(S("aa"))} end - @cls == String and assert_no_memory_leak([], 's = ""', <<~'end;') # do + @cls == String and + assert_no_memory_leak([], 's = ""', "#{<<~"begin;"}\n#{<<~'end;'}") + begin; 1000.times { s.crypt(-"..").clear } end; end |
