The Trunk: GraphicsTests-nice.31.mcz

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

The Trunk: GraphicsTests-nice.31.mcz

commits-2
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@10 extent: 20@0.
+ verticalLine := 20@0 extent: 0@20.
+ self assert: (horizontalLine intersects: verticalLine).
+ outsideRectangle := 100@10 extent: 20@20.
+ self deny: (horizontalLine intersects: outsideRectangle).!