Sha256: deb2110fa5a0538f30161e9169f225d8c841c9f7ccd3167efd8501a21ea3bb10

Contents?: true

Size: 508 Bytes

Versions: 1

Compression:

Stored size: 508 Bytes

Contents

require 'minitest/autorun'
require 'geometry/circle'

def Circle(*args)
    Geometry::Circle.new(*args)
end

describe Geometry::Circle do
    it "must create a Circle object from a Point and a radius" do
	circle = Circle [1,2], 3
	assert_kind_of(Geometry::Circle, circle)
    end

    it "must have a center point accessor" do
	circle = Circle [1,2], 3
	assert_equal(circle.center, [1,2])
    end

    it "must have a radius accessor" do
	circle = Circle [1,2], 3
	assert_equal(3, circle.radius)
    end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
geometry-4 test/geometry/circle.rb