Sha256: ce6752adb310738a150680bef847f79bff018b4186211217ee9fe429270f9b69
Contents?: true
Size: 523 Bytes
Versions: 3
Compression:
Stored size: 523 Bytes
Contents
require 'spec_helper' describe Haversine::Distance do describe "<=>" do context "equality" do it "is true when the great circle distance is equal" do dist1 = Haversine::Distance.new(0) dist2 = Haversine::Distance.new(0) (dist1 == dist2).should be_true end it "is false when the great circle distance is not equal" do dist1 = Haversine::Distance.new(0) dist2 = Haversine::Distance.new(1) (dist1 == dist2).should be_false end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
haversine-0.3.2 | spec/distance_spec.rb |
haversine-0.3.1 | spec/distance_spec.rb |
haversine-0.3.0 | spec/distance_spec.rb |