Sha256: c3527d40669775dca123e5016cd4d1076bb89b8bfbd8922d831912d4b5375503
Contents?: true
Size: 491 Bytes
Versions: 4
Compression:
Stored size: 491 Bytes
Contents
#! /usr/bin/env ruby # coding: utf-8 require "helper" #require "test/unit" #require 'mageo.rb' #require "mageo/cylinder.rb" #require "mageo/vector3d.rb" class TC_Cylinder < Test::Unit::TestCase def setup @c00 = Mageo::Cylinder.new([[0.0, 1.0, 2.0], [1.0, 2.0, 3.0]], 3.0) end def test_initialize assert_equal(Mageo::Vector3D[0.0, 1.0, 2.0], @c00.positions[0]) assert_equal(Mageo::Vector3D[1.0, 2.0, 3.0], @c00.positions[1]) assert_equal(3.0, @c00.radius) end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
mageo-0.0.5 | test/test_cylinder.rb |
mageo-0.0.4 | test/test_cylinder.rb |
mageo-0.0.3 | test/test_cylinder.rb |
mageo-0.0.2 | test/test_cylinder.rb |