Sha256: 8c1f090493d17692ee953d019b9618bd2567aae423d155bcbf83c52c76baec80
Contents?: true
Size: 531 Bytes
Versions: 2
Compression:
Stored size: 531 Bytes
Contents
require_relative '../helper' require_relative '../../lib/geometry/circle' def Circle(*args) Geometry::Circle.new(*args) end class CircleTest < Test::Unit::TestCase must "create a Circle object from a Point and a radius" do circle = Circle [1,2], 3 assert_kind_of(Geometry::Circle, circle) end must "have a center point accessor" do circle = Circle [1,2], 3 assert_equal(circle.center, [1,2]) end must "have a radius accessor" do circle = Circle [1,2], 3 assert_equal(3, circle.radius) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
geometry-3 | test/geometry/circle.rb |
geometry-2 | test/geometry/circle.rb |