diff options
| author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-12-24 14:31:41 +0000 |
|---|---|---|
| committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-12-24 14:31:41 +0000 |
| commit | 0da9e023e24618b0efbef90700a60c6ea5161745 (patch) | |
| tree | 841de4db80db8cf997c5c17eee9d4b4237ff650d /lib/tsort.rb | |
| parent | 72c139e84aad6f50c66f56353d5362193842b68a (diff) | |
| download | ruby-0da9e023e24618b0efbef90700a60c6ea5161745.tar.gz ruby-0da9e023e24618b0efbef90700a60c6ea5161745.tar.xz ruby-0da9e023e24618b0efbef90700a60c6ea5161745.zip | |
* lib/tsort.rb (test_orphaned_break): removed.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@5282 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/tsort.rb')
| -rw-r--r-- | lib/tsort.rb | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/lib/tsort.rb b/lib/tsort.rb index 82d3f3a38..5efd6480d 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 |
