summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-01-09 20:39:28 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-01-09 20:39:28 +0000
commit71ecd899986ed10a549d32762331ea9632343b1b (patch)
tree206a940ee97f0ec27849a6addcac9d9e9d37f95e /test
parent2ae2d9dd4dae4089bc1c0a813cd520734ad33d28 (diff)
reverted r26263.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@26264 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r--test/matrix/test_matrix.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/matrix/test_matrix.rb b/test/matrix/test_matrix.rb
index 6b9b587c6d..90e52b1295 100644
--- a/test/matrix/test_matrix.rb
+++ b/test/matrix/test_matrix.rb
@@ -150,7 +150,7 @@ class TestMatrix < Test::Unit::TestCase
end
def test_determinant
- assert_equal(45, Matrix[[7,6], [3,9]].determinant)
- assert_equal(-18, Matrix[[2,0,1],[0,-2,2],[1,2,3]].determinant)
+ assert_equal(45, Matrix[[7.0,6.0], [3.0,9.0]].determinant)
+ assert_equal(-18, Matrix[[2.0,0.0,1.0],[0.0,-2.0,2.0],[1.0,2.0,3.0]].determinant)
end
end