comparison: js/src/jit-test/tests/jaeger/tableSwitchDouble.js
js/src/jit-test/tests/jaeger/tableSwitchDouble.js
- changeset 0
- 6474c204b198
equal
deleted
inserted
replaced
|
1 |
|
2 function f(a) { |
|
3 switch(a) { |
|
4 case 3: return 3; |
|
5 case 4: return 4; |
|
6 default: return -1; |
|
7 } |
|
8 } |
|
9 |
|
10 assertEq(f(-0.0), -1); |
|
11 assertEq(f(3.14), -1); |
|
12 assertEq(f(12.34), -1); |
|
13 |