require 'Geo.so' require 'test/unit' #Ruby's built-in unit testing module class PointTest < Test::Unit::TestCase include Geo def test_construct p1=Point.new(5.0,25.0) assert_equal(5.0,p1.x) assert_equal(25.0,p1.y) end end