1
0
mirror of https://github.com/cc65/cc65.git synced 2024-11-19 06:31:31 +00:00
cc65/test/val/lib_common_mulxx.c

19 lines
342 B
C
Raw Normal View History

#include <cc65.h>
2019-03-21 19:43:07 +00:00
#include "unittest.h"
TEST
{
unsigned i;
for (i=0; i < 256; ++i)
{
ASSERT_AreEqual(i*20, mul20(i), "%u", "Invalid 'mul20(%u)' calculation!" COMMA i);
2019-03-21 19:43:07 +00:00
}
for (i=0; i < 256; ++i)
{
ASSERT_AreEqual(i*40, mul40(i), "%u", "Invalid 'mul40(%u)' calculation!" COMMA i);
2019-03-21 19:43:07 +00:00
}
}
ENDTEST