test/test_factor.rb in statsample-0.9.0 vs test/test_factor.rb in statsample-0.10.0
- old
+ new
@@ -82,12 +82,12 @@
expected= Matrix[[-0.0204423, 0.938674, -0.340334],
[0.983662, 0.0730206, 0.134997],
[0.0826106, 0.435975, -0.893379],
[0.939901, -0.0965213, -0.309596]].to_gsl
varimax=Statsample::Factor::Varimax.new(a)
- 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")
+ assert(!varimax.rotated.nil?, "Rotated shouldn't be empty")
+ assert(!varimax.component_transformation_matrix.nil?, "Component matrix shouldn't be empty")
+ assert(!varimax.h2.nil?,"H2 shouldn't be empty")
_test_matrix(expected,varimax.rotated)
else
skip "Rotation not tested. Requires GSL"
end
end