[squeak-dev] The Trunk: GraphicsTests-nice.31.mcz
commits at source.squeak.org
commits at source.squeak.org
Tue Jan 15 01:15:05 UTC 2013
Nicolas Cellier uploaded a new version of GraphicsTests to project The Trunk:
http://source.squeak.org/trunk/GraphicsTests-nice.31.mcz
==================== Summary ====================
Name: GraphicsTests-nice.31
Author: nice
Time: 15 January 2013, 2:14:45.369 am
UUID: 8baec1a0-7587-4c9e-a1fa-92cfcf048296
Ancestors: GraphicsTests-nice.30
Some degenerated rectangles (lines) can intersects: even though they have a null area.
=============== Diff against GraphicsTests-nice.30 ===============
Item was added:
+ ----- Method: RectangleTest>>testDegeneratedIntersectionTest (in category 'testing') -----
+ testDegeneratedIntersectionTest
+ | horizontalLine verticalLine outsideRectangle |
+ horizontalLine := 10 at 10 extent: 20 at 0.
+ verticalLine := 20 at 0 extent: 0 at 20.
+ self assert: (horizontalLine intersects: verticalLine).
+ outsideRectangle := 100 at 10 extent: 20 at 20.
+ self deny: (horizontalLine intersects: outsideRectangle).!
More information about the Squeak-dev
mailing list
|