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

Unified Diff: tests/corelib/integer_to_radix_string_test.dart

Issue 847773004: Update toRadixString test so that it fails on d8 too. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 11 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/integer_to_radix_string_test.dart
diff --git a/tests/corelib/integer_to_radix_string_test.dart b/tests/corelib/integer_to_radix_string_test.dart
index 5ebd7e09106cf32dd86c9aab77ac618b922d32be..80d30ccbb9e91364e69797213dd29fae92dae8e0 100644
--- a/tests/corelib/integer_to_radix_string_test.dart
+++ b/tests/corelib/integer_to_radix_string_test.dart
@@ -43,12 +43,19 @@ main() {
0x8000000000000800,
0x10000000000000000,
0x10000000000001000,
+ 0x100000000000010000,
+ 0x1000000000000100000,
+ 0x10000000000001000000,
+ 0x100000000000010000000,
+ 0x1000000000000100000000,
+ 0x10000000000001000000000,
];
for (var bignum in bignums) {
for (int radix = 2; radix <= 36; radix++) {
String digits = bignum.toRadixString(radix);
int result = int.parse(digits, radix: radix);
- Expect.equals(bignum, result, "$bignum -> $digits/$radix");
+ Expect.equals(bignum, result,
+ "${bignum.toRadixString(16)} -> $digits/$radix");
}
}
}
« 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