[dia] Fix bounding-box unit test
- From: Hans Breuer <hans src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [dia] Fix bounding-box unit test
- Date: Sun, 24 Oct 2010 13:45:26 +0000 (UTC)
commit 87c4d307f98ec65e174b5d091ae123e994019db8
Author: Hans Breuer <hans breuer org>
Date: Sun Oct 24 15:44:55 2010 +0200
Fix bounding-box unit test
Kind of hard to believe, but apparently this was broken about an hour
after it's general availability by swapping left/top and right/bottom
in Rectangle (2008-08-09)
tests/test-boundingbox.c | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/tests/test-boundingbox.c b/tests/test-boundingbox.c
index 4d693e0..c0f6241 100644
--- a/tests/test-boundingbox.c
+++ b/tests/test-boundingbox.c
@@ -90,13 +90,13 @@ static struct _TestBeziers {
BezPoint *pts;
Rectangle box;
} _test_beziers[] = { /* top, left, bottom, right */
- { BEZ(1), { 0.5-T, 0.0-T, 2.0+T, 2.0+T } },
- { BEZ(2), { 0.5-T,-2.0-T, 2.0+T, 0.0+T } },
- { BEZ(3), {-1.5-T,-2.0-T, 0.0+T, 0.0+T } },
- { BEZ(4), {-1.5-T, 0.0-T, 0.0+T, 2.0+T } },
+ { BEZ(1), { 0.0-T, 0.5-T, 2.0+T, 2.0+T } },
+ { BEZ(2), {-2.0-T, 0.5-T, 0.0+T, 2.0+T } },
+ { BEZ(3), {-2.0-T,-1.5-T, 0.0+T, 0.0+T } },
+ { BEZ(4), { 0.0-T,-1.5-T, 2.0+T, 0.0+T } },
/* it only 'jumps' out of the box with a line width>0 */
- { BEZ(5), { 0.5-T, 0.0-T, 2.0+T, 2.0+T } },
- { BEZ(6), { 0.0-T, 0.2-T, 2.0+T, 1.8+T } },
+ { BEZ(5), { 0.0-T, 0.5-T, 2.0+T, 2.0+T } },
+ { BEZ(6), { 0.2-T, 0.0-T, 1.8+T, 2.0+T } },
{ BEZ(7), { 0.25-T,0.25-T, 1.75+T, 1.75+T} },
};
#undef BEZ
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]