From 8b279c0ddbcf417230b7e3fa08ca020bb8f309ad Mon Sep 17 00:00:00 2001 From: akr Date: Wed, 24 Dec 2003 14:31:41 +0000 Subject: * lib/tsort.rb (test_orphaned_break): removed. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5282 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/tsort.rb | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'lib/tsort.rb') diff --git a/lib/tsort.rb b/lib/tsort.rb index 82d3f3a385..5efd6480d3 100644 --- a/lib/tsort.rb +++ b/lib/tsort.rb @@ -283,20 +283,6 @@ if __FILE__ == $0 assert_equal([[0], [1]], a.strongly_connected_components.map {|nodes| nodes.sort}) end - - def orphaned_proc(block_str) - eval "lambda {#{block_str}}" - end - - def test_orphaned_break - a = [[1], [2], []] - @n = 0 - x = orphaned_proc %{|c| @n += 1; break :break_value} - assert_nothing_raised { - assert_equal(:break_value, a.each_strongly_connected_component(&x)) - } - assert_equal(1, @n) - end end end -- cgit v1.2.3