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

Unified Diff: pkg/fixnum/test/int_64_test.dart

Issue 23490010: Fix assert in int64 and add test (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/fixnum/lib/src/int64.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/fixnum/test/int_64_test.dart
diff --git a/pkg/fixnum/test/int_64_test.dart b/pkg/fixnum/test/int_64_test.dart
index 20f2822d9a693f9891b18ed10c5fb661844059df..d781984ea101f0534af907db0e89af6d82637238 100644
--- a/pkg/fixnum/test/int_64_test.dart
+++ b/pkg/fixnum/test/int_64_test.dart
@@ -562,6 +562,13 @@ void main() {
// Overflow during parsing.
check("9223372036854775808", 10, "-9223372036854775808");
});
+
+ test("parseRadixN", () {
+ check(String s, int r) {
+ expect(Int64.parseRadix(s, r).toRadixString(r), s);
+ }
+ check("2ppp111222333", 33); // This value & radix requires three chunks.
+ });
});
group("string representation", () {
« no previous file with comments | « pkg/fixnum/lib/src/int64.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698