gecko-dev/js2/tests/js/verify.js

12 строки
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++;
}