Sha256: 069daeae69bf895a7c70b29f549e3aeeb2c8ca35e5cdafdac516ba81f2faadd5
Contents?: true
Size: 557 Bytes
Versions: 2
Compression:
Stored size: 557 Bytes
Contents
require 'spec_helper' module GuiGeometry describe "Tools" do include Tools it "min" do min(4,5).should == 4 min(5,4).should == 4 end it "max" do max(4,5).should == 5 max(5,4).should == 5 end it "bound" do bound(2,5,7).should == 5 bound(2,1,7).should == 2 bound(2,8,7).should == 7 bound(2,8,1).should == 2 end it "minmax" do minmax(4,5).should == [4,5] minmax(5,4).should == [4,5] end it "easy constructors" do point.class.should == Point rect.class.should == Rectangle end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
gui_geometry-0.0.6 | spec/tools_spec.rb |
gui_geometry-0.0.5 | spec/tools_spec.rb |