mirror of
https://github.com/dart-lang/sdk
synced 2024-11-02 12:24:24 +00:00
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:
parent
b72588aa3e
commit
e376bcd30f
2 changed files with 4 additions and 14 deletions
|
@ -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);
|
||||
}
|
|
@ -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);
|
||||
}
|
Loading…
Reference in a new issue