summaryrefslogtreecommitdiff
path: root/test/ruby/test_whileuntil.rb
diff options
context:
space:
mode:
authorNARUSE, Yui <naruse@airemix.jp>2024-01-30 18:00:47 +0900
committerNARUSE, Yui <naruse@airemix.jp>2024-01-30 18:00:47 +0900
commit9f18cbd7964f32f224e7d0efba79ee0476a442e0 (patch)
treeff2509ad120d8a1ed3045d28b252c20626e40e72 /test/ruby/test_whileuntil.rb
parentd4b780e84e9a6b858d0f6c6a44b22da0d2f5835e (diff)
Revert "merge revision(s) bc002971b6ad483dbf69b8a275c44412bb6ab954: [Backport #20094]"
This reverts commit d4b780e84e9a6b858d0f6c6a44b22da0d2f5835e.
Diffstat (limited to 'test/ruby/test_whileuntil.rb')
-rw-r--r--test/ruby/test_whileuntil.rb18
1 files changed, 0 insertions, 18 deletions
diff --git a/test/ruby/test_whileuntil.rb b/test/ruby/test_whileuntil.rb
index ff6d29ac4a..121c44817d 100644
--- a/test/ruby/test_whileuntil.rb
+++ b/test/ruby/test_whileuntil.rb
@@ -73,24 +73,6 @@ class TestWhileuntil < Test::Unit::TestCase
}
end
- def test_begin_while
- i = 0
- sum = 0
- begin
- i += 1
- sum += i
- end while i < 10
- assert_equal([10, 55], [i, sum])
-
- i = 0
- sum = 0
- (
- i += 1
- sum += i
- ) while false
- assert_equal([0, 0], [i, sum])
- end
-
def test_until
i = 0
until i>4