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

Side by Side Diff: dart/pkg/fixnum/test/int_32_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, 2 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 | « dart/pkg/fixnum/intx.dart ('k') | dart/pkg/fixnum/test/int_64_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) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 4
5 library int32test; 5 #library("int32test");
6 import '../fixnum.dart'; 6 #import('../fixnum.dart');
7 7
8 void main() { 8 void main() {
9 Expect.equals("0", new int32.fromInt(0).toString()); 9 Expect.equals("0", new int32.fromInt(0).toString());
10 Expect.equals("1", new int32.fromInt(1).toString()); 10 Expect.equals("1", new int32.fromInt(1).toString());
11 Expect.equals("-1", new int32.fromInt(-1).toString()); 11 Expect.equals("-1", new int32.fromInt(-1).toString());
12 Expect.equals("1000", new int32.fromInt(1000).toString()); 12 Expect.equals("1000", new int32.fromInt(1000).toString());
13 Expect.equals("-1000", new int32.fromInt(-1000).toString()); 13 Expect.equals("-1000", new int32.fromInt(-1000).toString());
14 Expect.equals("2147483647", new int32.fromInt(2147483647).toString()); 14 Expect.equals("2147483647", new int32.fromInt(2147483647).toString());
15 Expect.equals("-2147483648", new int32.fromInt(2147483648).toString()); 15 Expect.equals("-2147483648", new int32.fromInt(2147483648).toString());
16 Expect.equals("-2147483647", new int32.fromInt(2147483649).toString()); 16 Expect.equals("-2147483647", new int32.fromInt(2147483649).toString());
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 } 149 }
150 150
151 try { 151 try {
152 new int32.fromInt(17) < null; 152 new int32.fromInt(17) < null;
153 Expect.fail("x >= null should throw NullPointerException"); 153 Expect.fail("x >= null should throw NullPointerException");
154 } on NullPointerException catch (e) { 154 } on NullPointerException catch (e) {
155 } 155 }
156 156
157 Expect.isFalse(new int32.fromInt(17) == null); 157 Expect.isFalse(new int32.fromInt(17) == null);
158 } 158 }
OLDNEW
« no previous file with comments | « dart/pkg/fixnum/intx.dart ('k') | dart/pkg/fixnum/test/int_64_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698