| OLD | NEW |
| (Empty) | |
| 1 // Expectation for test: |
| 2 // import 'dart:math'; |
| 3 // main() { |
| 4 // var x = int.parse('3'); |
| 5 // var y = int.parse('1234'); |
| 6 // var z = int.parse('1236'); |
| 7 // var w = int.parse('2'); |
| 8 // print(x is num); |
| 9 // print(sin(x)); |
| 10 // print(x is num); |
| 11 // |
| 12 // print(y is num); |
| 13 // print(log(y)); |
| 14 // print(y is num); |
| 15 // |
| 16 // print(z is num); |
| 17 // print(w is num); |
| 18 // print(pow(z, w)); |
| 19 // print(z is num); |
| 20 // print(w is num); |
| 21 // } |
| 22 |
| 23 function() { |
| 24 var x = P.int_parse("3", null, null), y = P.int_parse("1234", null, null), z =
P.int_parse("1236", null, null), w = P.int_parse("2", null, null), v0 = typeof
x === "number", v1; |
| 25 P.print(v0); |
| 26 if (!v0) |
| 27 throw H.wrapException(H.argumentErrorValue(x)); |
| 28 P.print(Math.sin(x)); |
| 29 P.print(true); |
| 30 v0 = typeof y === "number"; |
| 31 P.print(v0); |
| 32 if (!v0) |
| 33 throw H.wrapException(H.argumentErrorValue(y)); |
| 34 P.print(Math.log(y)); |
| 35 P.print(true); |
| 36 v1 = typeof z === "number"; |
| 37 P.print(v1); |
| 38 v0 = typeof w === "number"; |
| 39 P.print(v0); |
| 40 if (!v1) |
| 41 throw H.wrapException(H.argumentErrorValue(z)); |
| 42 if (!v0) |
| 43 throw H.wrapException(H.argumentErrorValue(w)); |
| 44 P.print(Math.pow(z, w)); |
| 45 P.print(true); |
| 46 P.print(true); |
| 47 } |
| OLD | NEW |