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

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

Issue 12223010: Fix test that broke dartium builds., (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 10 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 | « no previous file | no next file » | 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) 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;
8
7 import 'dart:math'; 9 import 'dart:math';
8 10
9 var expectedResults = 11 var expectedResults =
10 [ 12 [
11 1, 13 1,
12 2, 14 2,
13 4, 15 4,
14 8, 16 8,
15 16, 17 16,
16 32, 18 32,
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 } 88 }
87 // Optimize it. 89 // Optimize it.
88 for (int i = 0; i < 8888; i++) { 90 for (int i = 0; i < 8888; i++) {
89 pow(2, 3); 91 pow(2, 3);
90 } 92 }
91 exp = 0; 93 exp = 0;
92 for (int val in expectedResults) { 94 for (int val in expectedResults) {
93 Expect.equals(val, pow(2, exp++)); 95 Expect.equals(val, pow(2, exp++));
94 } 96 }
95 } 97 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698