Sha256: 46d63fd8c16c0a70a5565b7bd41661476f57d874105681576940f1f54d53b1dd

Contents?: true

Size: 447 Bytes

Versions: 1

Compression:

Stored size: 447 Bytes

Contents

#! /usr/bin/env ruby
# coding: utf-8

require "test/unit"
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 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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
mageo-0.0.1 test/test_cylinder.rb