mirror of https://github.com/tc39/test262.git
parent
da61938f8f
commit
6ca3634d1b
|
@ -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)){
|
||||
|
|
Loading…
Reference in New Issue