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

Unified Diff: runtime/vm/bigint_operations_test.cc

Issue 9620002: Handle Bigint.toCString when remainder equals 0. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 9 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
« runtime/vm/bigint_operations.cc ('K') | « runtime/vm/bigint_operations.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/bigint_operations_test.cc
diff --git a/runtime/vm/bigint_operations_test.cc b/runtime/vm/bigint_operations_test.cc
index 398339f9944157365f90b46c9a493e68df677712..75b24642ef4da04f1d98402b9838e202496f0a3f 100644
--- a/runtime/vm/bigint_operations_test.cc
+++ b/runtime/vm/bigint_operations_test.cc
@@ -500,6 +500,14 @@ TEST_CASE(BigintDecStrings) {
BigintOperations::ToDecimalCString(bigint, &ZoneAllocator);
EXPECT_STREQ("291", str);
}
+
+ {
+ const Bigint& bigint = Bigint::Handle(
+ BigintOperations::NewFromCString("100000000000000000000000000000000"));
+ const char* str =
+ BigintOperations::ToDecimalCString(bigint, &ZoneAllocator);
+ EXPECT_STREQ("100000000000000000000000000000000", str);
+ }
}
« runtime/vm/bigint_operations.cc ('K') | « runtime/vm/bigint_operations.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698