test/test_plane.rb in gmath3D-0.1.1 vs test/test_plane.rb in gmath3D-0.2.0

- old
+ new

@@ -1,5 +1,8 @@ +$LOAD_PATH.unshift(File.dirname(__FILE__)) +require 'helper' + include GMath3D MiniTest::Unit.autorun class PlaneTestCase < MiniTest::Unit::TestCase @@ -14,9 +17,13 @@ assert_equal(@base_point, @plane.base_point) assert_equal(@normal, @plane.normal) assert_equal(Vector3.new(0,0,0),@plane_default.base_point) assert_equal(Vector3.new(0,0,1),@plane_default.normal) assert_equal(Geom.default_tolerance, @plane_default.tolerance) + end + + def test_to_s + assert_equal("Plane[point[0, 0, 1], normal[0.0, 0.0, 1.0]]", @plane.to_s) end def test_distance_to_point target_point = Vector3.new(1,2,3) distance, closest_point = @plane.distance(target_point)