mirror of
https://github.com/cc65/cc65.git
synced 2024-12-24 11:31:31 +00:00
19 lines
338 B
C
19 lines
338 B
C
#include <cc65.h>
|
|
#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);
|
|
}
|
|
|
|
for (i=0; i < 256; ++i)
|
|
{
|
|
ASSERT_AreEqual(i*40, mul40(i), "%u", "Invalid 'mul40(%u)' calculation!" COMMA i);
|
|
}
|
|
}
|
|
ENDTEST
|