| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 // Dart test program for testing the instanceof operation. | 4 // Dart test program for testing the instanceof operation. |
| 5 | 5 |
| 6 | 6 |
| 7 testIsNegative() { | 7 testIsNegative() { |
| 8 Expect.isFalse((12.0).isNegative()); | 8 Expect.isFalse((12.0).isNegative()); |
| 9 Expect.isTrue((-12.0).isNegative()); | 9 Expect.isTrue((-12.0).isNegative()); |
| 10 Expect.isFalse((double.NAN).isNegative()); | 10 Expect.isFalse((double.NAN).isNegative()); |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 testIsNegative(); | 33 testIsNegative(); |
| 34 testIsNaN(); | 34 testIsNaN(); |
| 35 testTrigonometric(); | 35 testTrigonometric(); |
| 36 } | 36 } |
| 37 return x; | 37 return x; |
| 38 } | 38 } |
| 39 | 39 |
| 40 void main() { | 40 void main() { |
| 41 var m = foo(4000); | 41 var m = foo(4000); |
| 42 } | 42 } |
| OLD | NEW |