[前][次][番号順一覧][スレッド一覧]

ruby-changes:67936

From: Hiroshi <ko1@a...>
Date: Sat, 11 Sep 2021 18:10:41 +0900 (JST)
Subject: [ruby-changes:67936] 64e056a4c5 (master): Drop to Ruby 1.8 related code

https://git.ruby-lang.org/ruby.git/commit/?id=64e056a4c5

From 64e056a4c5d4595cd2c36aabc747cca32f4b5395 Mon Sep 17 00:00:00 2001
From: Hiroshi SHIBATA <hsbt@r...>
Date: Sat, 11 Sep 2021 18:09:53 +0900
Subject: Drop to Ruby 1.8 related code

---
 tool/test/testunit/test_minitest_unit.rb | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/tool/test/testunit/test_minitest_unit.rb b/tool/test/testunit/test_minitest_unit.rb
index 6d72724..0ee9cc2 100644
--- a/tool/test/testunit/test_minitest_unit.rb
+++ b/tool/test/testunit/test_minitest_unit.rb
@@ -448,8 +448,6 @@ class TestMiniTestUnitTestCase < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/tool/test/testunit/test_minitest_unit.rb#L448
   # which is not threadsafe. Nearly every method in here is an
   # assertion test so it isn't worth splitting it out further.
 
-  RUBY18 = ! defined? Encoding
-
   def setup
     super
 
@@ -686,7 +684,7 @@ class TestMiniTestUnitTestCase < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/tool/test/testunit/test_minitest_unit.rb#L684
   end
 
   def test_assert_in_epsilon_triggered_negative_case
-    x = RUBY18 ? "0.1" : "0.100000xxx"
+    x = "0.100000xxx"
     y = "0.1"
     util_assert_triggered "Expected |-1.1 - -1| (#{x}) to be <= #{y}." do
       @tc.assert_in_epsilon(-1.1, -1, 0.1)
-- 
cgit v1.1


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]