diff options
author | marcandre <marcandre@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-04-11 18:50:51 +0000 |
---|---|---|
committer | marcandre <marcandre@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-04-11 18:50:51 +0000 |
commit | 521f4a4beb1623cfc911ab07a9c5c37dd0dd8988 (patch) | |
tree | 7cd6ada92898e7ef7babae29f8a6dacee7c6d0bc /test/matrix/test_vector.rb | |
parent | 3f64c83eb1b698b18ab9c71abc6815537485ef89 (diff) | |
download | ruby-521f4a4beb1623cfc911ab07a9c5c37dd0dd8988.tar.gz |
* lib/matrix.rb: Deprecate Vector#elements_to{i/f/r}
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27313 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/matrix/test_vector.rb')
-rw-r--r-- | test/matrix/test_vector.rb | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/test/matrix/test_vector.rb b/test/matrix/test_vector.rb index 4cc1404e8a..582509fd20 100644 --- a/test/matrix/test_vector.rb +++ b/test/matrix/test_vector.rb @@ -123,18 +123,6 @@ class TestVector < Test::Unit::TestCase assert_equal(Matrix[[1,2,3]], @v1.covector) end - def test_elements_to_f - assert_equal(Vector[0.5,1.0,1.5], @v1.elements_to_f * Rational(1, 2)) - end - - def test_elements_to_i - assert_equal(Vector[0,1,1], (@v1.elements_to_f * Rational(1, 2)).elements_to_i) - end - - def test_elements_to_r - assert_equal(@v1.collect {|x| Rational(x, 2) }, @v1.elements_to_r * Rational(1, 2)) - end - def test_to_s assert_equal("Vector[1, 2, 3]", @v1.to_s) end |