ruby-changes:59827
From: Koichi <ko1@a...>
Date: Tue, 28 Jan 2020 15:24:30 +0900 (JST)
Subject: [ruby-changes:59827] 5f7be6243a (master): support multi-run for test/ruby/test_encoding.rb
https://git.ruby-lang.org/ruby.git/commit/?id=5f7be6243a From 5f7be6243a5b0cdbf1abc8967a512e48c2f1489e Mon Sep 17 00:00:00 2001 From: Koichi Sasada <ko1@a...> Date: Tue, 28 Jan 2020 13:36:46 +0900 Subject: support multi-run for test/ruby/test_encoding.rb Unique encoding name is required. diff --git a/test/ruby/test_encoding.rb b/test/ruby/test_encoding.rb index 019cb24..024d21b 100644 --- a/test/ruby/test_encoding.rb +++ b/test/ruby/test_encoding.rb @@ -56,8 +56,8 @@ class TestEncoding < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_encoding.rb#L56 end def test_replicate - assert_instance_of(Encoding, Encoding::UTF_8.replicate('UTF-8-ANOTHER')) - assert_instance_of(Encoding, Encoding::ISO_2022_JP.replicate('ISO-2022-JP-ANOTHER')) + assert_instance_of(Encoding, Encoding::UTF_8.replicate("UTF-8-ANOTHER#{Time.now.to_f}")) + assert_instance_of(Encoding, Encoding::ISO_2022_JP.replicate("ISO-2022-JP-ANOTHER#{Time.now.to_f}")) bug3127 = '[ruby-dev:40954]' assert_raise(TypeError, bug3127) {Encoding::UTF_8.replicate(0)} assert_raise(ArgumentError, bug3127) {Encoding::UTF_8.replicate("\0")} -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/