| OLD | NEW |
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, 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 "package:expect/expect.dart"; | |
| 6 | |
| 7 // Dart test program for testing basic boolean properties. | 5 // Dart test program for testing basic boolean properties. |
| 8 // @static-clean | 6 // @static-clean |
| 9 | 7 |
| 10 class BoolTest { | 8 class BoolTest { |
| 11 static void testEquality() { | 9 static void testEquality() { |
| 12 Expect.equals(true, true); | 10 Expect.equals(true, true); |
| 13 Expect.equals(false, false); | 11 Expect.equals(false, false); |
| 14 Expect.isTrue(identical(true, true)); | 12 Expect.isTrue(identical(true, true)); |
| 15 Expect.isFalse(identical(true, false)); | 13 Expect.isFalse(identical(true, false)); |
| 16 Expect.isTrue(identical(false, false)); | 14 Expect.isTrue(identical(false, false)); |
| (...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 212 testEquality(); | 210 testEquality(); |
| 213 testNegate(true, false); | 211 testNegate(true, false); |
| 214 testToString(); | 212 testToString(); |
| 215 testLogicalOp(); | 213 testLogicalOp(); |
| 216 } | 214 } |
| 217 } | 215 } |
| 218 | 216 |
| 219 main() { | 217 main() { |
| 220 BoolTest.testMain(); | 218 BoolTest.testMain(); |
| 221 } | 219 } |
| OLD | NEW |