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

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

Issue 11233061: Revert "Parts must start with 'part of'" and "Attempt to fix VM build" (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 1 month 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 // Test number types. 4 // Test number types.
5 5
6 library NumbersTest; 6 #library("NumbersTest.dart");
7 7
8 class NumbersTest { 8 class NumbersTest {
9 static double testMain() { 9 static double testMain() {
10 var one = 1; 10 var one = 1;
11 Expect.equals(true, one is Object); 11 Expect.equals(true, one is Object);
12 Expect.equals(true, one is num); 12 Expect.equals(true, one is num);
13 Expect.equals(true, one is int); 13 Expect.equals(true, one is int);
14 Expect.equals(false, one is double); 14 Expect.equals(false, one is double);
15 15
16 var two = 2.0; 16 var two = 2.0;
(...skipping 10 matching lines...) Expand all
27 27
28 Expect.equals(3.0, result); 28 Expect.equals(3.0, result);
29 return result; 29 return result;
30 } 30 }
31 } 31 }
32 32
33 33
34 main() { 34 main() {
35 NumbersTest.testMain(); 35 NumbersTest.testMain();
36 } 36 }
OLDNEW
« no previous file with comments | « dart/tests/language/multi_pass_test.dart ('k') | dart/tests/language/overridden_no_such_method.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698