diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-04-29 05:46:04 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-04-29 05:46:04 +0000 |
commit | 921b2d1cfb67bae2941642015fbe35f7e7b81698 (patch) | |
tree | d1fe3820094f7bc1b8cb1fb26fec50810901094f /test/ruby/test_bignum.rb | |
parent | e1cc51407329230aab32088ed67f78b0c5c23e8b (diff) | |
download | ruby-921b2d1cfb67bae2941642015fbe35f7e7b81698.tar.gz |
* lib/test/unit/assertions.rb (Test::Unit::Assertions#assert):
use more descriptive assertions.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27545 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_bignum.rb')
-rw-r--r-- | test/ruby/test_bignum.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/ruby/test_bignum.rb b/test/ruby/test_bignum.rb index 40c4f21c3f..5cff48c4d7 100644 --- a/test/ruby/test_bignum.rb +++ b/test/ruby/test_bignum.rb @@ -290,8 +290,8 @@ class TestBignum < Test::Unit::TestCase def test_pow assert_equal(1.0, T32 ** 0.0) assert_equal(1.0 / T32, T32 ** -1) - assert((T32 ** T32).infinite?) - assert((T32 ** (2**30-1)).infinite?) + assert_equal(1, (T32 ** T32).infinite?) + assert_equal(1, (T32 ** (2**30-1)).infinite?) ### rational changes the behavior of Bignum#** #assert_raise(TypeError) { T32**"foo" } |