From 92258384f7e1e4e7e94c62ca9b89c84200237516 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miloslav=20=C4=8C=C3=AD=C5=BE?= Date: Wed, 5 Sep 2018 11:37:12 +0200 Subject: [PATCH] Update tests --- test.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/test.c b/test.c index 021703b..b0c1461 100644 --- a/test.c +++ b/test.c @@ -18,6 +18,11 @@ Unit testArrayFunc(int16_t x, int16_t y) return (x < 0 || y < 0 || x > 9 || y > 9) ? 1 : 0; } +Unit testArrayFunc2(int16_t x, int16_t y) +{ + return testArrayFunc(x,y) + 10 * UNITS_PER_SQUARE; +} + /** Simple automatic test function. */ @@ -189,7 +194,7 @@ void benchmarkRender() constraints.maxSteps = 12; for (int i = 0; i < 100; ++i) - render(c,testArrayFunc,pixelFunc,constraints); + render(c,testArrayFunc,testArrayFunc2,pixelFunc,constraints); } int main()