aboutsummaryrefslogtreecommitdiffstats
path: root/lib/tsort.rb
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-12-24 14:31:41 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-12-24 14:31:41 +0000
commit8b279c0ddbcf417230b7e3fa08ca020bb8f309ad (patch)
tree841de4db80db8cf997c5c17eee9d4b4237ff650d /lib/tsort.rb
parent8855456929e5d71ccadaddfc5be1823eb7c17e6c (diff)
downloadruby-8b279c0ddbcf417230b7e3fa08ca020bb8f309ad.tar.gz
* lib/tsort.rb (test_orphaned_break): removed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5282 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/tsort.rb')
-rw-r--r--lib/tsort.rb14
1 files changed, 0 insertions, 14 deletions
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