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

Unified Diff: tests/corelib_strong/growable_list_test.dart

Issue 2988803002: Adjust some tests for limited 64-bit integers (Closed)
Patch Set: Created 3 years, 5 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 | « tests/corelib/hash_set_test.dart ('k') | tests/corelib_strong/hash_set_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/corelib_strong/growable_list_test.dart
diff --git a/tests/corelib_strong/growable_list_test.dart b/tests/corelib_strong/growable_list_test.dart
index 49af5aebbe3cc486870d4cb304fc870d831ed03a..2aa5b6fa6f761c40969dc6e326a4fd8f1a95d507 100644
--- a/tests/corelib_strong/growable_list_test.dart
+++ b/tests/corelib_strong/growable_list_test.dart
@@ -96,7 +96,7 @@ void testConstructor() {
testGrowable(new List<int>.filled(5, null, growable: true));
Expect.throws(() => new List<int>(-1), (e) => e is ArgumentError, "-1");
// There must be limits. Fix this test if we ever allow 10^30 elements.
- Expect.throws(() => new List<int>(0x1000000000000000000000000000000),
+ Expect.throws(() => new List<int>(0x7fffffffffffffff),
(e) => e is ArgumentError, "bignum");
Expect.throws(() => new List<int>(null), (e) => e is ArgumentError, "null");
testThrowsOrTypeError(
« no previous file with comments | « tests/corelib/hash_set_test.dart ('k') | tests/corelib_strong/hash_set_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698