Broken error message in test (#1358)

Fixes #1355
This commit is contained in:
Isiah Meadows 2017-11-28 10:34:04 -05:00 committed by Leo Balter
parent da61938f8f
commit 6ca3634d1b

View File

@ -42,8 +42,10 @@ function SwitchTest(value){
return result; return result;
} }
if(!(SwitchTest(eval('Number(false)')) === 6)){ var n = Number(false);
$ERROR("#1: SwitchTest(0) === 6. Actual: SwitchTest(0) ==="+ SwitchTest(0) );
if(!(SwitchTest(n) === 6)){
$ERROR("#1: SwitchTest(Number(false)) === 6. Actual: SwitchTest(Number(false)) ==="+ SwitchTest(n) );
} }
if(!(SwitchTest(parseInt) === 32)){ if(!(SwitchTest(parseInt) === 32)){