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

Side by Side Diff: pkg/fixnum/tests/int_64_vm_test.dart

Issue 10854162: Move fixnum to from lib/ to pkg/ . Once pub.dartlang.org (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 4 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) 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 // A test to compare the results of the fixnum library with the Dart VM 5 // A test to compare the results of the fixnum library with the Dart VM
6 6
7 #library('int64vmtest'); 7 #library('int64vmtest');
8 #source('../../../lib/fixnum/intx.dart'); 8 #source('../intx.dart');
9 #source('../../../lib/fixnum/int32.dart'); 9 #source('../int32.dart');
10 #source('../../../lib/fixnum/int64.dart'); 10 #source('../int64.dart');
11 11
12 void main() { 12 void main() {
13 int64VMTest test = new int64VMTest(); 13 int64VMTest test = new int64VMTest();
14 test.doTestBinary(new BinaryOp("&", (a, b) => a & b)); 14 test.doTestBinary(new BinaryOp("&", (a, b) => a & b));
15 test.doTestBinary(new BinaryOp("|", (a, b) => a | b)); 15 test.doTestBinary(new BinaryOp("|", (a, b) => a | b));
16 test.doTestBinary(new BinaryOp("^", (a, b) => a ^ b)); 16 test.doTestBinary(new BinaryOp("^", (a, b) => a ^ b));
17 test.doTestBinary(new BinaryOp("+", (a, b) => a + b)); 17 test.doTestBinary(new BinaryOp("+", (a, b) => a + b));
18 test.doTestBinary(new BinaryOp("-", (a, b) => a - b)); 18 test.doTestBinary(new BinaryOp("-", (a, b) => a - b));
19 test.doTestBinary(new BinaryOp("*", (a, b) => a * b)); 19 test.doTestBinary(new BinaryOp("*", (a, b) => a * b));
20 test.doTestUnary(new UnaryOp("-", (a) => -a)); 20 test.doTestUnary(new UnaryOp("-", (a) => -a));
(...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after
316 } 316 }
317 } 317 }
318 for (int i = 0; i < RANDOM_TESTS; i++) { 318 for (int i = 0; i < RANDOM_TESTS; i++) {
319 int64 randomLong = _randomInt64(); 319 int64 randomLong = _randomInt64();
320 for (int shift = -64; shift <= 64; shift++) { 320 for (int shift = -64; shift <= 64; shift++) {
321 _doTestShift(op, randomLong, shift); 321 _doTestShift(op, randomLong, shift);
322 } 322 }
323 } 323 }
324 } 324 }
325 } 325 }
OLDNEW
« pkg/fixnum/pubspec.yaml ('K') | « pkg/fixnum/tests/int_64_test.dart ('k') | pkg/pkg.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698