diff options
Diffstat (limited to 'jni/ruby/test/-ext-/iter/test_iter_break.rb')
-rw-r--r-- | jni/ruby/test/-ext-/iter/test_iter_break.rb | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/jni/ruby/test/-ext-/iter/test_iter_break.rb b/jni/ruby/test/-ext-/iter/test_iter_break.rb new file mode 100644 index 0000000..5bac633 --- /dev/null +++ b/jni/ruby/test/-ext-/iter/test_iter_break.rb @@ -0,0 +1,15 @@ +require 'test/unit' +require '-test-/iter' + +module TestIter +end + +class TestIter::IterBreak < Test::Unit::TestCase + def test_iter_break + backport7896 = '[ruby-core:52607]' + assert_equal(nil, 1.times{Bug::Iter::Breakable.iter_break}, backport7896) + + feature5895 = '[ruby-dev:45132]' + assert_equal(42, 1.times{Bug::Iter::Breakable.iter_break_value(42)}, feature5895) + end +end |