mirror of
https://github.com/cc65/cc65.git
synced 2024-11-05 08:05:51 +00:00
19 lines
342 B
C
19 lines
342 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
|