IronGOLEM/tests/test.🗿

46 lines
643 B
Plaintext
Raw Normal View History

2023-06-13 07:15:20 -04:00
global name;
2023-06-18 05:11:23 -04:00
test_str(value, reach_value, description)
2023-06-12 14:26:35 -04:00
{
putstr(name);
if (strcmp(value, reach_value))
2023-06-12 14:26:35 -04:00
{
putstr(": ERROR: ");
putstr(", ");
2023-06-13 07:15:20 -04:00
putstr(description);
2023-06-12 14:26:35 -04:00
putstr(" [");
putstr(reach_value);
putstr(" != ");
putstr(value);
putstr("]");
}
else
{
putstr(": OK: ");
2023-06-13 07:15:20 -04:00
putstr(description);
2023-06-12 14:26:35 -04:00
}
wrt '\n';
}
test_int(value, reach_value, description)
{
putstr(name);
if (value != reach_value)
{
putstr(": ERROR: ");
putstr(", ");
putstr(description);
putstr(" [");
2023-06-18 11:12:45 -04:00
putnum(reach_value);
putstr(" != ");
2023-06-18 11:12:45 -04:00
putnum(value);
putstr("]");
}
else
{
putstr(": OK: ");
putstr(description);
}
wrt '\n';
}