gecko-dev/js/js2/tests/verify.js
2000-11-07 00:58:42 +00:00

12 lines
235 B
JavaScript

count = 0;
function verify(a, b)
{
if ((a == b) || ((b != b) && (a == undefined)) )
print("Test " + count + " succeeded");
else
print("Test " + count + " failed, expected " + b + ", got " + a);
count++;
}