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 23a61ce77d10e1f69552bca123878f3c7602d363 (commit) from ce13a7e7695f7264c8fe0047a912bcc1b9cf5126 (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/23a61ce77d10e1f69552bca123878f3c7602d...
commit 23a61ce77d10e1f69552bca123878f3c7602d363 Author: Cyril Hrubis metan@ucw.cz Date: Sun Dec 9 14:17:57 2012 +0100
tests: gfx: Polygon.c: More testcases.
diff --git a/tests/gfx/Polygon.c b/tests/gfx/Polygon.c index c683102..d846328 100644 --- a/tests/gfx/Polygon.c +++ b/tests/gfx/Polygon.c @@ -260,6 +260,49 @@ struct testcase testcase_6px_triangle = { } };
+struct testcase testcase_triangle_1 = { + .edge_count = 3, + .edges = { + 1, 4, + 8, 2, + 2, 8, + }, + .w = 10, + .h = 10, + .pixmap = { + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, + 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, + 0, 0, 1, 1, 1, 1, 1, 1, 0, 0, + 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, + 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, + 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, + 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + } +}; + +struct testcase testcase_bow_4edges_7px = { + .edge_count = 4, + .edges = { + 1, 1, + 1, 3, + 3, 1, + 3, 3, + }, + .w = 5, + .h = 5, + .pixmap = { + 0, 0, 0, 0, 0, + 0, 1, 0, 1, 0, + 0, 1, 1, 1, 0, + 0, 1, 0, 1, 0, + 0, 0, 0, 0, 0, + } +}; + const struct tst_suite tst_suite = { .suite_name = "Polygon Testsuite", .tests = { @@ -307,6 +350,14 @@ const struct tst_suite tst_suite = { .tst_fn = test_polygon, .data = &testcase_6px_triangle}, + {.name = "Triangle 1. Polygon", + .tst_fn = test_polygon, + .data = &testcase_triangle_1}, + + {.name = "Bow 4edges 7px", + .tst_fn = test_polygon, + .data = &testcase_bow_4edges_7px}, + {.name = NULL} } };
-----------------------------------------------------------------------
Summary of changes: tests/gfx/Polygon.c | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 51 insertions(+), 0 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.