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

Side by Side Diff: tests/corelib_strong/num_parse_test.dart

Issue 2765693002: Update all tests (Closed)
Patch Set: Created 3 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2013 the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013 the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 import "package:expect/expect.dart"; 5 import "package:expect/expect.dart";
6 6
7 const whiteSpace = const [ 7 const whiteSpace = const [
8 "", 8 "",
9 "\x09", 9 "\x09",
10 "\x0a", 10 "\x0a",
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 testDouble(1.0); 150 testDouble(1.0);
151 testDouble(1.0000000000000002); 151 testDouble(1.0000000000000002);
152 testDouble(4294967295.0); 152 testDouble(4294967295.0);
153 testDouble(4294967296.0); 153 testDouble(4294967296.0);
154 testDouble(4503599627370495.5); 154 testDouble(4503599627370495.5);
155 testDouble(4503599627370497.0); 155 testDouble(4503599627370497.0);
156 testDouble(9007199254740991.0); 156 testDouble(9007199254740991.0);
157 testDouble(9007199254740992.0); 157 testDouble(9007199254740992.0);
158 testDouble(1.7976931348623157e+308); 158 testDouble(1.7976931348623157e+308);
159 testDouble(double.INFINITY); 159 testDouble(double.INFINITY);
160 testDouble(double.NAN); /// 01: ok 160 testDouble(double.NAN); //# 01: ok
161 161
162 // Strings that cannot occur from toString of a number. 162 // Strings that cannot occur from toString of a number.
163 testParse("000000000000", 0); 163 testParse("000000000000", 0);
164 testParse("000000000001", 1); 164 testParse("000000000001", 1);
165 testParse("000000000000.0000000000000", 0.0); 165 testParse("000000000000.0000000000000", 0.0);
166 testParse("000000000001.0000000000000", 1.0); 166 testParse("000000000001.0000000000000", 1.0);
167 testParse("0x0000000000", 0); 167 testParse("0x0000000000", 0);
168 testParse("0e0", 0.0); 168 testParse("0e0", 0.0);
169 testParse("0e+0", 0.0); 169 testParse("0e+0", 0.0);
170 testParse("0e-0", 0.0); 170 testParse("0e-0", 0.0);
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
225 testFail("INFINITY"); 225 testFail("INFINITY");
226 testFail("1.#INF"); 226 testFail("1.#INF");
227 testFail("inf"); 227 testFail("inf");
228 testFail("nan"); 228 testFail("nan");
229 testFail("NAN"); 229 testFail("NAN");
230 testFail("1.#IND"); 230 testFail("1.#IND");
231 testFail("indef"); 231 testFail("indef");
232 testFail("qnan"); 232 testFail("qnan");
233 testFail("snan"); 233 testFail("snan");
234 } 234 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698