From 2881a6d4120fd768eb28d1e40135da935cffce2a Mon Sep 17 00:00:00 2001 From: mame Date: Tue, 17 Apr 2018 08:47:56 +0000 Subject: 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 --- test/ruby/test_basicinstructions.rb | 1 - test/ruby/test_eval.rb | 35 ----------------------------------- 2 files changed, 36 deletions(-) (limited to 'test/ruby') diff --git a/test/ruby/test_basicinstructions.rb b/test/ruby/test_basicinstructions.rb index dd3ca4dd22..ab32ee54e2 100644 --- a/test/ruby/test_basicinstructions.rb +++ b/test/ruby/test_basicinstructions.rb @@ -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 diff --git a/test/ruby/test_eval.rb b/test/ruby/test_eval.rb index eba00f80bd..8900b4f165 100644 --- a/test/ruby/test_eval.rb +++ b/test/ruby/test_eval.rb @@ -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 -- cgit v1.2.3