| OLD | NEW |
| 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 import 'dart:_foreign_helper' show JS; | 5 import 'native_testing.dart'; |
| 6 import "package:expect/expect.dart"; | |
| 7 | 6 |
| 8 // Negative constant numbers must be generated as negation, not just a literal | 7 // Negative constant numbers must be generated as negation, not just a literal |
| 9 // with a sign, i.e. | 8 // with a sign, i.e. |
| 10 // | 9 // |
| 11 // (-5).toString() | 10 // (-5).toString() |
| 12 // | 11 // |
| 13 // not | 12 // not |
| 14 // | 13 // |
| 15 // -5 .toString() | 14 // -5 .toString() |
| 16 // | 15 // |
| (...skipping 17 matching lines...) Expand all Loading... |
| 34 | 33 |
| 35 test3() { | 34 test3() { |
| 36 checkString(JS('', '#.toString()', -0.0)); | 35 checkString(JS('', '#.toString()', -0.0)); |
| 37 } | 36 } |
| 38 | 37 |
| 39 main() { | 38 main() { |
| 40 test1(); | 39 test1(); |
| 41 test2(); | 40 test2(); |
| 42 test3(); | 41 test3(); |
| 43 } | 42 } |
| OLD | NEW |