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

Remove the old disabled assertions for 1.8/1.9

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63178 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
mame 2018-04-17 08:47:56 +00:00
parent 84934e4f24
commit 2881a6d412
2 changed files with 0 additions and 36 deletions

View file

@ -117,7 +117,6 @@ class TestBasicInstructions < Test::Unit::TestCase
assert_equal({1=>2}, {1=>2})
assert_equal({1=>2, 3=>4}, {1=>2, 3=>4})
assert_equal({1=>2, 3=>4}, {3=>4, 1=>2})
# assert_equal({1=>2, 3=>4}, {1,2, 3,4}) # 1.9 doesn't support
assert_equal({"key"=>"val"}, {"key"=>"val"})
end

View file

@ -320,20 +320,6 @@ class TestEval < Test::Unit::TestCase
end
assert(!bad)
if false
# Ruby 2.0 doesn't see Proc as Binding
x = proc{}
eval "i4 = 1", x
assert_equal(1, eval("i4", x))
x = proc{proc{}}.call
eval "i4 = 22", x
assert_equal(22, eval("i4", x))
t = []
x = proc{proc{}}.call
eval "(0..9).each{|i5| t[i5] = proc{i5*2}}", x
assert_equal(8, t[4].call)
end
x = binding
eval "i = 1", x
assert_equal(1, eval("i", x))
@ -360,27 +346,6 @@ class TestEval < Test::Unit::TestCase
assert_equal(eval("foo22"), eval("foo22", p))
assert_equal(55, eval("foo22"))
}.call
if false
# Ruby 2.0 doesn't see Proc as Binding
p1 = proc{i7 = 0; proc{i7}}.call
assert_equal(0, p1.call)
eval "i7=5", p1
assert_equal(5, p1.call)
assert(!defined?(i7))
end
if false
# Ruby 2.0 doesn't see Proc as Binding
p1 = proc{i7 = 0; proc{i7}}.call
i7 = nil
assert_equal(0, p1.call)
eval "i7=1", p1
assert_equal(1, p1.call)
eval "i7=5", p1
assert_equal(5, p1.call)
assert_nil(i7)
end
end
def test_nil_instance_eval_cvar