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

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

Issue 12743005: Revert "Remove Expect from core library." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Reupload (first upload failed). 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
« no previous file with comments | « tests/language/list_literal_syntax_test.dart ('k') | tests/language/list_test.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 // Test program for array literals. 4 // Test program for array literals.
5 5
6 import "package:expect/expect.dart";
7
8 class ListLiteralTest { 6 class ListLiteralTest {
9 7
10 static const LAUREL = 1; 8 static const LAUREL = 1;
11 static const HARDY = 2; 9 static const HARDY = 2;
12 10
13 static testMain() { 11 static testMain() {
14 12
15 var funny = <int>[LAUREL, HARDY, ]; // Check that trailing comma works. 13 var funny = <int>[LAUREL, HARDY, ]; // Check that trailing comma works.
16 Expect.equals(2, funny.length); 14 Expect.equals(2, funny.length);
17 15
(...skipping 26 matching lines...) Expand all
44 Expect.equals(1, e2[0]); 42 Expect.equals(1, e2[0]);
45 Expect.equals(2.0, e2[1]); 43 Expect.equals(2.0, e2[1]);
46 Expect.equals(3, e2[2]); 44 Expect.equals(3, e2[2]);
47 Expect.equals(200000.0, e2[3]); 45 Expect.equals(200000.0, e2[3]);
48 } 46 }
49 } 47 }
50 48
51 main() { 49 main() {
52 ListLiteralTest.testMain(); 50 ListLiteralTest.testMain();
53 } 51 }
OLDNEW
« no previous file with comments | « tests/language/list_literal_syntax_test.dart ('k') | tests/language/list_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698