Sha256: dec354f8be3120df358b195cca81ee2f97df4c860d7e5bad07f3fa18ece30a02
Contents?: true
Size: 415 Bytes
Versions: 2
Compression:
Stored size: 415 Bytes
Contents
describe "CGPoint Matchers" do it "should determinate if two points are close using a delta" do point_one = CGPointMake(100, 100) point_two = CGPointMake(200, 200) point_one.should.be.close point_two, 100 point_one.should.not.be.close point_two, 50 point_two.should.be.close point_one, 100 point_two.should.not.be.close point_one, 50 point_one.should.be.close point_one, 0 end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
joybox-1.1.1 | spec/spec_helpers/cg_point_spec.rb |
joybox-1.1.0 | spec/spec_helpers/cg_point_spec.rb |