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

Removed maglev related code because it's not active status now

This commit is contained in:
Hiroshi SHIBATA 2021-09-11 18:03:40 +09:00
parent b568e6a130
commit aebd0a873e
No known key found for this signature in database
GPG key ID: F9CF13417264FAC2
2 changed files with 4 additions and 15 deletions

View file

@ -32,15 +32,6 @@ module Test
##
# Is this running on mri?
def maglev? platform = defined?(RUBY_ENGINE) && RUBY_ENGINE
"maglev" == platform
end
module_function :maglev?
##
# Is this running on mri?
def mri? platform = RUBY_DESCRIPTION
/^ruby/ =~ platform
end

View file

@ -533,8 +533,6 @@ class TestMiniTestUnitTestCase < Test::Unit::TestCase
end
def test_assert_equal_different_diff_deactivated
skip "https://github.com/MagLev/maglev/issues/209" if maglev?
without_diff do
util_assert_triggered util_msg("haha" * 10, "blah" * 10) do
o1 = "haha" * 10
@ -649,7 +647,7 @@ class TestMiniTestUnitTestCase < Test::Unit::TestCase
end
def test_assert_in_delta_triggered
x = maglev? ? "9.999999xxxe-07" : "1.0e-06"
x = "1.0e-06"
util_assert_triggered "Expected |0.0 - 0.001| (0.001) to be <= #{x}." do
@tc.assert_in_delta 0.0, 1.0 / 1000, 0.000001
end
@ -688,8 +686,8 @@ class TestMiniTestUnitTestCase < Test::Unit::TestCase
end
def test_assert_in_epsilon_triggered_negative_case
x = (RUBY18 and not maglev?) ? "0.1" : "0.100000xxx"
y = maglev? ? "0.100000xxx" : "0.1"
x = RUBY18 ? "0.1" : "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)
end
@ -1197,7 +1195,7 @@ class TestMiniTestUnitTestCase < Test::Unit::TestCase
end
def test_refute_in_delta_triggered
x = maglev? ? "0.100000xxx" : "0.1"
x = "0.1"
util_assert_triggered "Expected |0.0 - 0.001| (0.001) to not be <= #{x}." do
@tc.refute_in_delta 0.0, 1.0 / 1000, 0.1
end