test/test_cylinder.rb in mageo-0.0.0 vs test/test_cylinder.rb in mageo-0.0.1

- old
+ new

@@ -5,17 +5,16 @@ require "helper" require "mageo/cylinder.rb" require "mageo/vector3d.rb" class TC_Cylinder < Test::Unit::TestCase - def setup - @c00 = Cylinder.new([[0.0, 1.0, 2.0], [1.0, 2.0, 3.0]], 3.0) - end + def setup + @c00 = Cylinder.new([[0.0, 1.0, 2.0], [1.0, 2.0, 3.0]], 3.0) + end - def test_initialize - assert_equal(Vector3D[0.0, 1.0, 2.0], @c00.positions[0]) - assert_equal(Vector3D[1.0, 2.0, 3.0], @c00.positions[1]) - assert_equal(3.0, @c00.radius) - end - + def test_initialize + assert_equal(Vector3D[0.0, 1.0, 2.0], @c00.positions[0]) + assert_equal(Vector3D[1.0, 2.0, 3.0], @c00.positions[1]) + assert_equal(3.0, @c00.radius) + end end