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

Unified Diff: tests/corelib/hash_set_test.dart

Issue 946203002: Make test compatible with dart2js integer semantics. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/corelib/hash_set_test.dart
===================================================================
--- tests/corelib/hash_set_test.dart (revision 43940)
+++ tests/corelib/hash_set_test.dart (working copy)
@@ -11,6 +11,7 @@
library hash_map2_test;
import "package:expect/expect.dart";
import 'dart:collection';
+import 'dart:math' as math;
testSet(Set newSet(), Set newSetFrom(Iterable from)) {
@@ -260,7 +261,7 @@
List keys = [];
// Powers of two
for (int i = 65; i >= 2; --i) {
- keys.add(new Mutable(1 << i));
+ keys.add(new Mutable(math.pow(2, i)));
}
for (var key in keys) {
Expect.isTrue(set.add(key));
« 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