This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project gfxprim.git.
The branch, master has been updated via fd8d609eb63fb8753bcbf69c882a9b9b4b58e966 (commit) from d774f27f7337a04044850bc48f4253e2d5016d13 (commit)
Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below.
- Log ----------------------------------------------------------------- http://repo.or.cz/w/gfxprim.git/commit/fd8d609eb63fb8753bcbf69c882a9b9b4b58e...
commit fd8d609eb63fb8753bcbf69c882a9b9b4b58e966 Author: Cyril Hrubis metan@ucw.cz Date: Sun Dec 9 14:35:51 2012 +0100
tests: gfx: GP_Line: More testcases.
diff --git a/tests/gfx/Line.c b/tests/gfx/Line.c index f3739e8..5314a90 100644 --- a/tests/gfx/Line.c +++ b/tests/gfx/Line.c @@ -171,8 +171,42 @@ static struct testcase testcase_line_15 = { } };
+static struct testcase testcase_line_clip = { + .x0 = -1000, + .y0 = -1000, + .x1 = 1000, + .y1 = 1000, + + .w = 4, + .h = 4, + + .pixmap = { + 1, 0, 0, 0, + 0, 1, 0, 0, + 0, 0, 1, 0, + 0, 0, 0, 1, + } +}; + +static struct testcase testcase_line_large_xy = { + .x0 = -1000000000, + .y0 = -1000000000, + .x1 = 1000000000, + .y1 = 1000000000, + + .w = 4, + .h = 4, + + .pixmap = { + 1, 0, 0, 0, + 0, 1, 0, 0, + 0, 0, 1, 0, + 0, 0, 0, 1, + } +}; + const struct tst_suite tst_suite = { - .suite_name = "GFX Line Testsuite", + .suite_name = "Line Testsuite", .tests = { {.name = "Line 1px", .tst_fn = test_line, @@ -193,7 +227,16 @@ const struct tst_suite tst_suite = { {.name = "Line 15 degrees", .tst_fn = test_line, .data = &testcase_line_15}, + + {.name = "Line clipping", + .tst_fn = test_line, + .data = &testcase_line_clip},
+ {.name = "Line large coordinates", + .tst_fn = test_line, + .data = &testcase_line_large_xy, + .timeout = 1}, + {.name = NULL} } };
-----------------------------------------------------------------------
Summary of changes: tests/gfx/Line.c | 45 ++++++++++++++++++++++++++++++++++++++++++++- 1 files changed, 44 insertions(+), 1 deletions(-)
repo.or.cz automatic notification. Contact project admin jiri.bluebear.dluhos@gmail.com if you want to unsubscribe, or site admin admin@repo.or.cz if you receive no reply.