From 3176790c0d15dd7a72bb6e349651b3a66111d6f7 Mon Sep 17 00:00:00 2001 From: Takashi Kokubun Date: Tue, 13 Jan 2026 10:57:06 -0800 Subject: Add a test backport missed at a10f7fac1fb1dcbdb1ae41137bd7294764a34793 https://bugs.ruby-lang.org/issues/21831 --- test/ruby/test_literal.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/ruby/test_literal.rb b/test/ruby/test_literal.rb index dbff3c4734..cff888d4b3 100644 --- a/test/ruby/test_literal.rb +++ b/test/ruby/test_literal.rb @@ -682,6 +682,11 @@ class TestRubyLiteral < Test::Unit::TestCase $VERBOSE = verbose_bak end + def test_rational_float + assert_equal(12, 0.12r * 100) + assert_equal(12, 0.1_2r * 100) + end + def test_symbol_list assert_equal([:foo, :bar], %i[foo bar]) assert_equal([:"\"foo"], %i["foo]) -- cgit v1.2.3