Sha256: fc9771ffc08f1ff0d2e6148ce4cc394a761e16fb03bbf913119a4b0b5d0d48bd

Contents?: true

Size: 357 Bytes

Versions: 1

Compression:

Stored size: 357 Bytes

Contents

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

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

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

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
mageo-0.0.1 test/test_sphere.rb