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

Side by Side Diff: tests/language/parse_types_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
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 // Dart test for testing parsing of "standard" types. 4 // Dart test for testing parsing of "standard" types.
5 5
6 import "package:expect/expect.dart";
7
8 class ParseTypesTest { 6 class ParseTypesTest {
9 static bool callBool1() { 7 static bool callBool1() {
10 return true; 8 return true;
11 } 9 }
12 10
13 static bool callBool2() { 11 static bool callBool2() {
14 return false; 12 return false;
15 } 13 }
16 14
17 static int callInt() { 15 static int callInt() {
(...skipping 13 matching lines...) Expand all
31 Expect.equals(false, ParseTypesTest.callBool2()); 29 Expect.equals(false, ParseTypesTest.callBool2());
32 Expect.equals(2, ParseTypesTest.callInt()); 30 Expect.equals(2, ParseTypesTest.callInt());
33 Expect.equals("Hey", ParseTypesTest.callString()); 31 Expect.equals("Hey", ParseTypesTest.callString());
34 Expect.equals(4.0, ParseTypesTest.callDouble()); 32 Expect.equals(4.0, ParseTypesTest.callDouble());
35 } 33 }
36 } 34 }
37 35
38 main() { 36 main() {
39 ParseTypesTest.testMain(); 37 ParseTypesTest.testMain();
40 } 38 }
OLDNEW
« no previous file with comments | « tests/language/parameter_types_specialization_test.dart ('k') | tests/language/partial_min_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698