From 9f18cbd7964f32f224e7d0efba79ee0476a442e0 Mon Sep 17 00:00:00 2001 From: "NARUSE, Yui" Date: Tue, 30 Jan 2024 18:00:47 +0900 Subject: Revert "merge revision(s) bc002971b6ad483dbf69b8a275c44412bb6ab954: [Backport #20094]" This reverts commit d4b780e84e9a6b858d0f6c6a44b22da0d2f5835e. --- test/ruby/test_whileuntil.rb | 18 ------------------ 1 file changed, 18 deletions(-) (limited to 'test/ruby') 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 -- cgit v1.2.3