| OLD | NEW |
| (Empty) | |
| 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 |
| 3 // BSD-style license that can be found in the LICENSE file. |
| 4 |
| 5 final x = "foo"; |
| 6 final y = "foo"; |
| 7 final g1 = x + "bar"; |
| 8 final g2 = x + null; |
| 9 final g3 = x + 499; |
| 10 final g4 = x + 3.3; |
| 11 final g5 = x + true; |
| 12 final g6 = x + false; |
| 13 final g7 = x[0]; |
| 14 final g8 = x.length; |
| 15 final g9 = x == y; |
| 16 |
| 17 main() { |
| 18 Expect.equals("foobar", g1); |
| 19 Expect.equals("foonull", g2); |
| 20 Expect.equals("foo499", g3); |
| 21 Expect.equals("foo3.3", g4); |
| 22 Expect.equals("footrue", g5); |
| 23 Expect.equals("foofalse", g6); |
| 24 Expect.equals('f', g7); |
| 25 Expect.equals(3, g8); |
| 26 Expect.isTrue(g9); |
| 27 } |
| OLD | NEW |