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

Side by Side Diff: tests/language/numbers_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/number_syntax_test.dart ('k') | tests/language/operator2_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 number types. 4 // Test number types.
5 5
6 library NumbersTest.dart; 6 library NumbersTest.dart;
7 import "package:expect/expect.dart";
8 7
9 class NumbersTest { 8 class NumbersTest {
10 static double testMain() { 9 static double testMain() {
11 var one = 1; 10 var one = 1;
12 Expect.equals(true, one is Object); 11 Expect.equals(true, one is Object);
13 Expect.equals(true, one is num); 12 Expect.equals(true, one is num);
14 Expect.equals(true, one is int); 13 Expect.equals(true, one is int);
15 Expect.equals(false, one is double); 14 Expect.equals(false, one is double);
16 15
17 var two = 2.0; 16 var two = 2.0;
(...skipping 10 matching lines...) Expand all
28 27
29 Expect.equals(3.0, result); 28 Expect.equals(3.0, result);
30 return result; 29 return result;
31 } 30 }
32 } 31 }
33 32
34 33
35 main() { 34 main() {
36 NumbersTest.testMain(); 35 NumbersTest.testMain();
37 } 36 }
OLDNEW
« no previous file with comments | « tests/language/number_syntax_test.dart ('k') | tests/language/operator2_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698