From dd0c75fdc2104a6ba38b68d4431a572504a3bbc2 Mon Sep 17 00:00:00 2001 From: Kenta Murata Date: Tue, 8 Oct 2019 09:06:28 +0900 Subject: Import changes from ruby/bigdecimal (#2531) Sync to ruby/bigdecimal@92356ba71c6bd325b0ab618c634a7aecf8cdc767 --- test/bigdecimal/test_bigdecimal_util.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'test/bigdecimal/test_bigdecimal_util.rb') diff --git a/test/bigdecimal/test_bigdecimal_util.rb b/test/bigdecimal/test_bigdecimal_util.rb index bb9ed83185..b963fcdeeb 100644 --- a/test/bigdecimal/test_bigdecimal_util.rb +++ b/test/bigdecimal/test_bigdecimal_util.rb @@ -75,6 +75,8 @@ class TestBigDecimalUtil < Test::Unit::TestCase assert_equal(BigDecimal('0.1'), "0.1e_10".to_d) assert_equal(BigDecimal('1'), "0.1e1__0".to_d) assert_equal(BigDecimal('1.2'), "1.2.3".to_d) + assert_equal(BigDecimal('1'), "1.".to_d) + assert_equal(BigDecimal('1'), "1e".to_d) assert("2.5".to_d.frozen?) end -- cgit v1.2.3