diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-07-16 15:28:50 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-07-16 15:28:50 +0000 |
commit | e5b6c9c5e4f48a4de8a611e1a085ba63f49ce89e (patch) | |
tree | 1c7c17e7d95568016c4966bad3116948c59b0952 /test/lib | |
parent | 360f85eb8b3f7df4374dbfb64a1700527dee3776 (diff) | |
download | ruby-e5b6c9c5e4f48a4de8a611e1a085ba63f49ce89e.tar.gz |
assertions.rb: frozen string buffer
* test/lib/test/unit/assertions.rb (assert_pattern_list): make
frozen string literals modifiable as buffers.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59346 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/lib')
-rw-r--r-- | test/lib/test/unit/assertions.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/lib/test/unit/assertions.rb b/test/lib/test/unit/assertions.rb index ee6a758f8a..d426a3d844 100644 --- a/test/lib/test/unit/assertions.rb +++ b/test/lib/test/unit/assertions.rb @@ -781,13 +781,13 @@ eom msg = message(msg) { expect_msg = "Expected #{mu_pp pattern}\n" if /\n[^\n]/ =~ rest - actual_mesg = "to match\n" + actual_mesg = +"to match\n" rest.scan(/.*\n+/) { actual_mesg << ' ' << $&.inspect << "+\n" } actual_mesg.sub!(/\+\n\z/, '') else - actual_mesg = "to match #{mu_pp rest}" + actual_mesg = "to match " + mu_pp(rest) end actual_mesg << "\nafter #{i} patterns with #{actual.length - rest.length} characters" expect_msg + actual_mesg |