Chromium Code Reviews| 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 // Dart test program for testing basic boolean properties. | 5 // Dart test program for testing basic boolean properties. |
| 6 // @static-clean | |
| 6 | 7 |
| 7 class BoolTest { | 8 class BoolTest { |
| 8 static void testEquality() { | 9 static void testEquality() { |
| 9 Expect.equals(true, true); | 10 Expect.equals(true, true); |
|
Bill Hesse
2012/03/02 08:55:18
Extra space.
zundel
2012/03/02 23:51:00
Done.
| |
| 10 Expect.equals(false, false); | 11 Expect.equals(false, false); |
| 11 Expect.equals(true, true === true); | 12 Expect.equals(true, true === true); |
| 12 Expect.equals(false, true === false); | 13 Expect.equals(false, true === false); |
| 13 Expect.equals(true, false === false); | 14 Expect.equals(true, false === false); |
| 14 Expect.equals(false, false === true); | 15 Expect.equals(false, false === true); |
| 15 Expect.equals(false, true !== true); | 16 Expect.equals(false, true !== true); |
| 16 Expect.equals(true, true !== false); | 17 Expect.equals(true, true !== false); |
| 17 Expect.equals(false, false !== false); | 18 Expect.equals(false, false !== false); |
| 18 Expect.equals(true, false !== true); | 19 Expect.equals(true, false !== true); |
| 19 Expect.equals(true, true == true); | 20 Expect.equals(true, true == true); |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 106 | 107 |
| 107 static void testMain() { | 108 static void testMain() { |
| 108 testEquality(); | 109 testEquality(); |
| 109 testToString(); | 110 testToString(); |
| 110 } | 111 } |
| 111 } | 112 } |
| 112 | 113 |
| 113 main() { | 114 main() { |
| 114 BoolTest.testMain(); | 115 BoolTest.testMain(); |
| 115 } | 116 } |
| OLD | NEW |