Skip to content
Snippets Groups Projects
Commit 6ca3634d authored by Isiah Meadows's avatar Isiah Meadows Committed by Leo Balter
Browse files

Broken error message in test (#1358)

Fixes #1355 
parent da61938f
No related branches found
No related tags found
No related merge requests found
......@@ -41,9 +41,11 @@ function SwitchTest(value){
return result;
}
if(!(SwitchTest(eval('Number(false)')) === 6)){
$ERROR("#1: SwitchTest(0) === 6. Actual: SwitchTest(0) ==="+ SwitchTest(0) );
var n = Number(false);
if(!(SwitchTest(n) === 6)){
$ERROR("#1: SwitchTest(Number(false)) === 6. Actual: SwitchTest(Number(false)) ==="+ SwitchTest(n) );
}
if(!(SwitchTest(parseInt) === 32)){
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment