blob: 97d89d6600373db35112ab669150fb8a7f56f42f [file] [log] [blame]
function log(message)
{
document.getElementById("result").innerHTML += message + "<br>";
}
function shouldBe(a, b)
{
aValue = eval(a);
bValue = eval(b);
if (aValue == bValue)
log('PASS: ' + a + ' equaled ' + b);
else
log('FAILED: ' + a + '(' + aValue + ') did not equal ' + b + '(' + bValue + ')');
}