Rename "string/overflow.dart" -> "string/overflow_test.dart".

Change-Id: I32fa46c5750ee6d2410231322bf16fa7decb751d
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/201227
Auto-Submit: Bob Nystrom <rnystrom@google.com>
Reviewed-by: Lasse R.H. Nielsen <lrn@google.com>
Commit-Queue: Bob Nystrom <rnystrom@google.com>
This commit is contained in:
Robert Nystrom 2021-06-03 00:40:24 +00:00 committed by commit-bot@chromium.org
parent b72588aa3e
commit e376bcd30f
2 changed files with 4 additions and 14 deletions

View file

@ -11,11 +11,6 @@ main() {
String a = "a";
for (; a.length < 256 * 1024 * 1024;) a = a + a;
var exception_thrown = false;
try {
var concat = "$a$a$a$a$a$a$a$a";
} on OutOfMemoryError catch (exc) {
exception_thrown = true;
}
Expect.isTrue(exception_thrown);
var concat = "$a$a$a$a$a$a$a$a";
Expect.equals(concat.length, 2147483648);
}

View file

@ -13,11 +13,6 @@ main() {
String a = "a";
for (; a.length < 256 * 1024 * 1024;) a = a + a;
var exception_thrown = false;
try {
var concat = "$a$a$a$a$a$a$a$a";
} on OutOfMemoryError catch (exc) {
exception_thrown = true;
}
Expect.isTrue(exception_thrown);
var concat = "$a$a$a$a$a$a$a$a";
Expect.equals(concat.length, 2147483648);
}