summaryrefslogtreecommitdiff
path: root/test/-ext-/iter
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-02-21 08:31:47 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-02-21 08:31:47 +0000
commite525bcd1b3723e91311d67262b1aa726cc9b0104 (patch)
tree7549e0b1ab467677985399fa684ae854de716d67 /test/-ext-/iter
parent45dcceaa71a64af9cf5209ed6989511bdd753ca1 (diff)
Add test for [Backport #7896] [ruby-core:52607]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39359 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/-ext-/iter')
-rw-r--r--test/-ext-/iter/test_iter_break.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/-ext-/iter/test_iter_break.rb b/test/-ext-/iter/test_iter_break.rb
index 03797a8..1ef2aad 100644
--- a/test/-ext-/iter/test_iter_break.rb
+++ b/test/-ext-/iter/test_iter_break.rb
@@ -3,7 +3,10 @@ require '-test-/iter/break'
class TestIterBreak < Test::Unit::TestCase
def test_iter_break
+ backport7896 = '[ruby-core:52607]'
+ assert_equal(nil, 1.times{Bug::Breakable.iter_break}, backport7896)
+
feature5895 = '[ruby-dev:45132]'
- assert_equal(42, 1.times{Bug::Breakable.iter_break(42)}, feature5895)
+ assert_equal(42, 1.times{Bug::Breakable.iter_break_value(42)}, feature5895)
end
end