summaryrefslogtreecommitdiff
path: root/test/-ext-/iter
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-01-24 05:20:48 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-01-24 05:20:48 +0000
commit04726dd749f1f93eca39584311e224e2465fca5c (patch)
treecc2b54cfaafdca60b6aa95624c9606de00666584 /test/-ext-/iter
parentd03199b6d6cedc9c5d1059aa58e5211af6b479b3 (diff)
* vm.c (rb_iter_break_value): new function to break a block with
the value. [ruby-dev:45132] [Feature #5895] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34369 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/-ext-/iter')
-rw-r--r--test/-ext-/iter/test_iter_break.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/-ext-/iter/test_iter_break.rb b/test/-ext-/iter/test_iter_break.rb
new file mode 100644
index 0000000..03797a8
--- /dev/null
+++ b/test/-ext-/iter/test_iter_break.rb
@@ -0,0 +1,9 @@
+require 'test/unit'
+require '-test-/iter/break'
+
+class TestIterBreak < Test::Unit::TestCase
+ def test_iter_break
+ feature5895 = '[ruby-dev:45132]'
+ assert_equal(42, 1.times{Bug::Breakable.iter_break(42)}, feature5895)
+ end
+end