mirror of
https://git.coom.tech/drummyfish/raycastlib.git
synced 2024-12-23 01:26:19 +01:00
Update tests
This commit is contained in:
parent
fa68bd5fa5
commit
92258384f7
1 changed files with 6 additions and 1 deletions
7
test.c
7
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()
|
||||
|
|
Loading…
Reference in a new issue