aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-09-26 10:01:50 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-09-26 10:01:50 +0000
commit61b43de7555d2c39bc7f36d353b2fdd08a55ca1f (patch)
treea6a821373ce9f28af31ae26b69bf12feee69fa1e
parent571b2e17b2775e40b3fe309d29dda611524625cf (diff)
downloadruby-61b43de7555d2c39bc7f36d353b2fdd08a55ca1f.tar.gz
* test/bigdecimal/test_bigdecimal.rb (test_inspect): fixed CPU bit
size dependent test. pointed out by TAKANO Mitsuhiro <takano32 AT jus.or.jp>. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19586 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog6
-rw-r--r--test/bigdecimal/test_bigdecimal.rb3
2 files changed, 8 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index df08d95eda..adc599193f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+Fri Sep 26 19:01:47 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * test/bigdecimal/test_bigdecimal.rb (test_inspect): fixed CPU bit
+ size dependent test. pointed out by TAKANO Mitsuhiro <takano32 AT
+ jus.or.jp>.
+
Fri Sep 26 18:39:59 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
* common.mk (dist): nothing is need to run BASERUBY.
diff --git a/test/bigdecimal/test_bigdecimal.rb b/test/bigdecimal/test_bigdecimal.rb
index 99ce108458..f8d932a87a 100644
--- a/test/bigdecimal/test_bigdecimal.rb
+++ b/test/bigdecimal/test_bigdecimal.rb
@@ -572,7 +572,8 @@ class TestBigDecimal < Test::Unit::TestCase
def test_inspect
x = BigDecimal.new("1234.5678")
- assert_match(/^#<BigDecimal:[0-9a-f]+,'0.12345678E4',8\(12\)>$/, x.inspect)
+ prec, maxprec = x.precs
+ assert_match(/^#<BigDecimal:[0-9a-f]+,'0.12345678E4',#{prec}\(#{maxprec}\)>$/, x.inspect)
end
def test_power