2023-06-13 07:15:20 -04:00
|
|
|
global name;
|
|
|
|
|
2023-06-12 14:26:35 -04:00
|
|
|
putstr(str){
|
|
|
|
local i;
|
|
|
|
i = 0;
|
|
|
|
loop {
|
|
|
|
if ([str + i] == 0)
|
|
|
|
return;
|
|
|
|
wrt [str + i];
|
|
|
|
i++;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-06-13 07:15:20 -04:00
|
|
|
test(value, reach_value, description)
|
2023-06-12 14:26:35 -04:00
|
|
|
{
|
|
|
|
putstr(name);
|
|
|
|
if (value != reach_value)
|
|
|
|
{
|
|
|
|
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';
|
|
|
|
}
|