Sha256: cfd30fc36fb5c66857497d845ef50052afda7458aff62dd52c7a1b80fdcd3676
Contents?: true
Size: 679 Bytes
Versions: 2
Compression:
Stored size: 679 Bytes
Contents
describe CGSize do before do @size = CGSizeMake(50, 50) end it "should return the half of the width" do @size.half_width.should == 25 end it "should return the double of the width" do @size.double_width.should == 100 end it "should return the half of the height" do @size.half_height.should == 25 end it "should return the double of the height" do @size.double_height.should == 100 end it "should convert from pixel coordinates" do @size.from_pixel_coordinates.should == CGSizeMake(1.5625, 1.5625) end it "should convert to pixel coordinates" do CGSizeMake(1.5625, 1.5625).to_pixel_coordinates.should == @size end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
joybox-1.1.1 | spec/motion/joybox/common/cg_size_spec.rb |
joybox-1.1.0 | spec/motion/joybox/common/cg_size_spec.rb |