Sha256: 7cb83c5920f387f0f3221b9714f5c28d2af8fd3718b09000bec733b05c2acb38
Contents?: true
Size: 420 Bytes
Versions: 1
Compression:
Stored size: 420 Bytes
Contents
require 'test/unit' require_relative 'test_unit_extensions' require_relative '../lib/geometry' class GeometryTest < Test::Unit::TestCase must "create a Point object" do point = Geometry.Point(2,1) assert_kind_of(Geometry::Point, point) end must "create a Line object" do line = Geometry.Line([0,0], [10,10]) assert_kind_of(Geometry::Line, line) assert_kind_of(Geometry::TwoPointLine, line) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
geometry-1 | test/test_geometry.rb |