
Co-authored-by: Akkarinage <mike.langford@industrial-illusions.net> Co-authored-by: Aleos <aleos89@users.noreply.github.com> Co-authored-by: Atemo <Atemo@users.noreply.github.com> Co-authored-by: cydh<cydh@users.noreply.github.com> Co-authored-by: Lemongrass3110 <lemongrass@kstp.at> Co-authored-by: secretdataz<secretdataz@users.noreply.github.com>
15 lines
343 B
Plaintext
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;
|
|
} |