1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Drop to Ruby 1.8 related code

This commit is contained in:
Hiroshi SHIBATA 2021-09-11 18:09:53 +09:00
parent a13ee1f33c
commit 64e056a4c5
No known key found for this signature in database
GPG key ID: F9CF13417264FAC2

View file

@ -448,8 +448,6 @@ class TestMiniTestUnitTestCase < Test::Unit::TestCase
# 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
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)