Sha256: f635a85eb39e7c029e38bed7070e096fc1dee087ef5a1436c5c97d3d66bf4b94

Contents?: true

Size: 348 Bytes

Versions: 1

Compression:

Stored size: 348 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.0 test/test_sphere.rb