You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
343 B
Plaintext

function script AssertTrue {
if (!getarg(0)) {
errormes "AssertTrue failed for " + getarg(1) + ".";
return false;
}
return true;
}
function script AssertEquals {
if (getarg(0) != getarg(1)) {
errormes "AssertEquals failed for " + getarg(2) + ": expected " + getarg(0) + ", got " + getarg(1) + ".";
return false;
}
return true;
}