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

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

Issue 12212016: Remove Expect from core library. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Updated latest tests. Created 7 years, 9 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 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 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
5 const g1 = true; 7 const g1 = true;
6 const g2 = 499; 8 const g2 = 499;
7 const g3 = "foo"; 9 const g3 = "foo";
8 const g4 = 3.3; 10 const g4 = 3.3;
9 const g5 = g1 == g2; 11 const g5 = g1 == g2;
10 const g6 = g1 == g3; 12 const g6 = g1 == g3;
11 const g7 = g1 == g4; 13 const g7 = g1 == g4;
12 const g8 = g2 == g3; 14 const g8 = g2 == g3;
13 const g9 = g2 == g4; 15 const g9 = g2 == g4;
14 const g10 = g3 == g4; 16 const g10 = g3 == g4;
15 const g11 = g1 == g1; 17 const g11 = g1 == g1;
16 const g12 = g2 == g2; 18 const g12 = g2 == g2;
17 const g13 = g3 == g3; 19 const g13 = g3 == g3;
18 const g14 = g4 == g4; 20 const g14 = g4 == g4;
19 21
20 main() { 22 main() {
21 Expect.isFalse(g5); 23 Expect.isFalse(g5);
22 Expect.isFalse(g6); 24 Expect.isFalse(g6);
23 Expect.isFalse(g7); 25 Expect.isFalse(g7);
24 Expect.isFalse(g8); 26 Expect.isFalse(g8);
25 Expect.isFalse(g9); 27 Expect.isFalse(g9);
26 Expect.isFalse(g10); 28 Expect.isFalse(g10);
27 Expect.isTrue(g11); 29 Expect.isTrue(g11);
28 Expect.isTrue(g12); 30 Expect.isTrue(g12);
29 Expect.isTrue(g13); 31 Expect.isTrue(g13);
30 Expect.isTrue(g14); 32 Expect.isTrue(g14);
31 } 33 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698