test/test_vector3.rb in gmath3D-0.2.0 vs test/test_vector3.rb in gmath3D-0.2.1
- old
+ new
@@ -70,9 +70,11 @@
floatingError2 = Geom.default_tolerance*10.0
vector = Vector3.new(1.0 - floatingError2, 2.0 + floatingError2, 3.0)
assert(@vector != vector)
+ assert_equal(Vector3.new(1,2,3), Vector3.new(1.0,2.0,3.0))
+
#invlid value comparison
assert(@vector != "string")
assert(@vector != -4)
end