Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(708)

Side by Side Diff: tests/language_strong/compile_time_constant6_test.dart

Issue 2994383002: Migrating block 50, first commit, after tool has run (Closed)
Patch Set: formatting Created 3 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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 import "package:expect/expect.dart";
6
7 const g1 = true;
8 const g2 = 499;
9 const g3 = "foo";
10 const g4 = 3.3;
11 const g5 = g1 == g2;
12 const g6 = g1 == g3;
13 const g7 = g1 == g4;
14 const g8 = g2 == g3;
15 const g9 = g2 == g4;
16 const g10 = g3 == g4;
17 const g11 = g1 == g1;
18 const g12 = g2 == g2;
19 const g13 = g3 == g3;
20 const g14 = g4 == g4;
21
22 main() {
23 Expect.isFalse(g5);
24 Expect.isFalse(g6);
25 Expect.isFalse(g7);
26 Expect.isFalse(g8);
27 Expect.isFalse(g9);
28 Expect.isFalse(g10);
29 Expect.isTrue(g11);
30 Expect.isTrue(g12);
31 Expect.isTrue(g13);
32 Expect.isTrue(g14);
33 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698