test/test_factor.rb in statsample-0.8.2 vs test/test_factor.rb in statsample-0.9.0
- old
+ new
@@ -31,11 +31,11 @@
expected_fm_2=GSL::Matrix[[0.677,0.735], [0.735, -0.677]]
_test_matrix(expected_fm_1,pca.feature_vector(1))
_test_matrix(expected_fm_2,pca.feature_vector(2))
assert(pca.summary)
else
- puts "PCA not tested. Requires GSL"
+ skip "PCA not tested. Requires GSL"
end
end
# Tested with R
def test_principalaxis
@@ -65,11 +65,11 @@
assert(fa.summary)
else
- puts "Principal Axis not tested. Requires GSL"
+ skip "Principal Axis not tested. Requires GSL"
end
end
def test_rotation_varimax
@@ -87,10 +87,10 @@
refute(varimax.rotated.nil?,"Rotated shouldn't be empty")
refute(varimax.component_transformation_matrix.nil?, "Component matrix shouldn't be empty")
refute(varimax.h2.nil?,"H2 shouldn't be empty")
_test_matrix(expected,varimax.rotated)
else
- puts "Rotation not tested. Requires GSL"
+ skip "Rotation not tested. Requires GSL"
end
end
def _test_matrix(a,b)
a.size1.times {|i|
a.size2.times {|j|