2012-01-24 00:20:48 -05:00
|
|
|
require 'test/unit'
|
2013-11-29 23:21:26 -05:00
|
|
|
require '-test-/iter'
|
2012-01-24 00:20:48 -05:00
|
|
|
|
2013-11-29 23:21:26 -05:00
|
|
|
module TestIter
|
|
|
|
end
|
|
|
|
|
|
|
|
class TestIter::IterBreak < Test::Unit::TestCase
|
2012-01-24 00:20:48 -05:00
|
|
|
def test_iter_break
|
2013-02-21 03:31:47 -05:00
|
|
|
backport7896 = '[ruby-core:52607]'
|
2013-11-29 23:21:26 -05:00
|
|
|
assert_equal(nil, 1.times{Bug::Iter::Breakable.iter_break}, backport7896)
|
2013-02-21 03:31:47 -05:00
|
|
|
|
2012-01-24 00:20:48 -05:00
|
|
|
feature5895 = '[ruby-dev:45132]'
|
2013-11-29 23:21:26 -05:00
|
|
|
assert_equal(42, 1.times{Bug::Iter::Breakable.iter_break_value(42)}, feature5895)
|
2012-01-24 00:20:48 -05:00
|
|
|
end
|
|
|
|
end
|