test/tc_MatrizDispersa.rb in matrices_p9-0.0.1 vs test/tc_MatrizDispersa.rb in matrices_p9-1.0.0
- old
+ new
@@ -1,12 +1,11 @@
-# Pruebas unitarias de la clase matriz dispersa
require "fraccion"
require "matrices_p9"
require "test/unit"
-
+# Pruebas unitarias de la clase matriz dispersa
class Test_MatrizDispersa < Test::Unit::TestCase
-
+ #Prueba con matrices dispersas
def test_1
assert_equal "[[0,0,2][1,1,4][2,2,6]]", (MatrizDispersa.new(3,3,[0,1,2],[0,1,2],[1,2,3]) + MatrizDispersa.new(3,3,[0,1,2],[0,1,2],[1,2,3])).to_s
end