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

Side by Side Diff: tests/standalone/pow_test.dart

Issue 12212016: Remove Expect from core library. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Add deprecation comment for ExpectException and revert one test. Created 7 years, 8 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) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 // Dart test program for testing math's pow. 5 // Dart test program for testing math's pow.
6 6
7 library pow_test; 7 library pow_test;
8 8
9 import "package:expect/expect.dart";
9 import 'dart:math'; 10 import 'dart:math';
10 11
11 var expectedResults = 12 var expectedResults =
12 [ 13 [
13 1, 14 1,
14 2, 15 2,
15 4, 16 4,
16 8, 17 8,
17 16, 18 16,
18 32, 19 32,
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 } 89 }
89 // Optimize it. 90 // Optimize it.
90 for (int i = 0; i < 8888; i++) { 91 for (int i = 0; i < 8888; i++) {
91 pow(2, 3); 92 pow(2, 3);
92 } 93 }
93 exp = 0; 94 exp = 0;
94 for (int val in expectedResults) { 95 for (int val in expectedResults) {
95 Expect.equals(val, pow(2, exp++)); 96 Expect.equals(val, pow(2, exp++));
96 } 97 }
97 } 98 }
OLDNEW
« no previous file with comments | « tests/standalone/package/packages/package1.dart ('k') | tests/standalone/status_expression_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698