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

- old
+ new

@@ -1,14 +1,19 @@ -require 'box' +$LOAD_PATH.unshift(File.dirname(__FILE__)) +require 'helper' include GMath3D MiniTest::Unit.autorun class BoxTestCase < MiniTest::Unit::TestCase def setup @box_default = Box.new() @box = Box.new(Vector3.new(-3,2,5), Vector3.new(2,-2.5, 0)) + end + + def test_to_s + assert_equal( "Box[min[-3, -2.5, 0], max[2, 2, 5]]", @box.to_s) end def test_initalize assert_equal(0, @box_default.min_point.x) assert_equal(0, @box_default.min_point.y)