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

Unified Diff: tests/corelib/double_parse_test.dart

Issue 623073002: Fix wrong limit on list index in double.parse. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 2 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 | « runtime/lib/double_patch.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/corelib/double_parse_test.dart
diff --git a/tests/corelib/double_parse_test.dart b/tests/corelib/double_parse_test.dart
index 226a2573fa98adac3ce4b3462e9a33c1cd4e34a1..dc577097db328ebe01a07b0902d5612f52289a22 100644
--- a/tests/corelib/double_parse_test.dart
+++ b/tests/corelib/double_parse_test.dart
@@ -270,6 +270,12 @@ void main() {
testParse("0.49999999999999997219", 0.49999999999999994);
testParse("0.49999999999999999", 0.5);
+ // Edge cases of algorithm (e+-22/23).
+ testParse("1e22", 1e22);
+ testParse("1e23", 1e23);
+ testParse("1e-22", 1e-22);
+ testParse("1e-23", 1e-23);
+
testParseWhitespace("1", 1.0);
testParseWhitespace("1.0", 1.0);
testParseWhitespace("1e1", 10.0);
« no previous file with comments | « runtime/lib/double_patch.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698