1
0
mirror of https://github.com/cc65/cc65.git synced 2024-12-23 19:29:37 +00:00
cc65/test/val/lib_common_mulxx.c

19 lines
338 B
C
Raw Normal View History

#include <cc65.h>
2019-03-21 19:43:07 +00:00
#include "unittest.h"
TEST
{
unsigned i;
2022-04-17 14:07:52 +00:00
2019-03-21 19:43:07 +00:00
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