Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 // BSD-style license that can be found in the LICENSE file. | |
| 4 // Test a new statement by itself. | |
| 5 // VMOptions=--optimization-counter-threshold=4 --no-use-osr | |
| 6 | |
| 7 import "package:expect/expect.dart"; | |
| 8 | |
| 9 main() { | |
| 10 for (int i = 0; i < 100; i++) { | |
| 11 Expect.isFalse(checkIdentical(double.NAN, -double.NAN)); | |
| 12 Expect.isTrue(checkIdentical(double.NAN, double.NAN)); | |
| 13 Expect.isTrue(checkIdentical(-double.NAN, -double.NAN)); | |
|
koda
2015/06/02 21:20:57
You should also test the return value for other Na
srdjan
2015/06/02 22:32:10
Done.
| |
| 14 } | |
| 15 } | |
| 16 | |
| 17 checkIdentical(a, b) => identical(a, b); | |
| OLD | NEW |