diff options
| author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-09-26 10:01:50 +0000 |
|---|---|---|
| committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-09-26 10:01:50 +0000 |
| commit | 3e59ba7c0b9662821191a8eae6ead1719b42d21f (patch) | |
| tree | a6a821373ce9f28af31ae26b69bf12feee69fa1e /test | |
| parent | 27ac6a2d9d79284fbc2b649af53698547fb4f421 (diff) | |
| download | ruby-3e59ba7c0b9662821191a8eae6ead1719b42d21f.tar.gz ruby-3e59ba7c0b9662821191a8eae6ead1719b42d21f.tar.xz ruby-3e59ba7c0b9662821191a8eae6ead1719b42d21f.zip | |
* 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: http://svn.ruby-lang.org/repos/ruby/trunk@19586 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
| -rw-r--r-- | test/bigdecimal/test_bigdecimal.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/bigdecimal/test_bigdecimal.rb b/test/bigdecimal/test_bigdecimal.rb index 99ce10845..f8d932a87 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 |
