Sha256: 15ec4735ea023e366bd1dbe02e0405e4dba875a686e3011980a1caf53ca226b1

Contents?: true

Size: 394 Bytes

Versions: 5

Compression:

Stored size: 394 Bytes

Contents

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

require "helper"
#require "test/unit"
#require 'mageo.rb'
#require "mageo/sphere.rb"
#require "mageo/vector3d.rb"

class TC_Sphere < Test::Unit::TestCase
  def setup
    @s00 = Mageo::Sphere.new([0.0, 1.0, 2.0], 3.0)
  end

  def test_initialize
    assert_equal(Mageo::Vector3D[0.0, 1.0, 2.0], @s00.position)
    assert_equal(3.0, @s00.radius)
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
mageo-0.1.0 test/test_sphere.rb
mageo-0.0.5 test/test_sphere.rb
mageo-0.0.4 test/test_sphere.rb
mageo-0.0.3 test/test_sphere.rb
mageo-0.0.2 test/test_sphere.rb