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

Side by Side Diff: tests/language/src/ParseTypesTest.dart

Issue 10248007: test rename overhaul: step 8 - language tests (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 7 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
(Empty)
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
3 // BSD-style license that can be found in the LICENSE file.
4 // Dart test for testing parsing of "standard" types.
5
6 class ParseTypesTest {
7 static bool callBool1() {
8 return true;
9 }
10
11 static bool callBool2() {
12 return false;
13 }
14
15 static int callInt() {
16 return 2;
17 }
18
19 static String callString() {
20 return "Hey";
21 }
22
23 static double callDouble() {
24 return 4.0;
25 }
26
27 static void testMain() {
28 Expect.equals(true, ParseTypesTest.callBool1());
29 Expect.equals(false, ParseTypesTest.callBool2());
30 Expect.equals(2, ParseTypesTest.callInt());
31 Expect.equals("Hey", ParseTypesTest.callString());
32 Expect.equals(4.0, ParseTypesTest.callDouble());
33 }
34 }
35
36 main() {
37 ParseTypesTest.testMain();
38 }
OLDNEW
« no previous file with comments | « tests/language/src/ParameterInitializerTest.dart ('k') | tests/language/src/ParserQuirksTest.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698