ruby-changes:59874
From: Koichi <ko1@a...>
Date: Wed, 29 Jan 2020 13:09:02 +0900 (JST)
Subject: [ruby-changes:59874] 46173eeb64 (master): support multi-run for test/ruby/enc/test_regex_casefold.rb
https://git.ruby-lang.org/ruby.git/commit/?id=46173eeb64 From 46173eeb64245ff533dafddd3d74338763c0bb35 Mon Sep 17 00:00:00 2001 From: Koichi Sasada <ko1@a...> Date: Wed, 29 Jan 2020 13:07:56 +0900 Subject: support multi-run for test/ruby/enc/test_regex_casefold.rb should not mutate test data. diff --git a/test/ruby/enc/test_regex_casefold.rb b/test/ruby/enc/test_regex_casefold.rb index 2b252bd..ec5dc7f 100644 --- a/test/ruby/enc/test_regex_casefold.rb +++ b/test/ruby/enc/test_regex_casefold.rb @@ -11,7 +11,7 @@ class TestCaseFold < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/enc/test_regex_casefold.rb#L11 def check_downcase_properties(expected, start, *flags) assert_equal expected, start.downcase(*flags) - temp = start + temp = start.dup assert_equal expected, temp.downcase!(*flags) assert_equal expected, expected.downcase(*flags) temp = expected -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/