Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 0d79c2d

Browse files
committed
Added test.
1 parent 87e0aad commit 0d79c2d

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

testing/dart/serial_gc_test.dart

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
// Copyright 2022 The Flutter Authors. All rights reserved.
2+
// Use of this source code is governed by a BSD-style license that can be
3+
// found in the LICENSE file.
4+
5+
// FlutterTesterOptions=--serial_gc
6+
7+
import 'package:litetest/litetest.dart';
8+
9+
void main() {
10+
test('Serial GC option test ', () async {
11+
bool threw = false;
12+
for (int i = 0; i < 100; i++) {
13+
var a = <int>[100];
14+
}
15+
expect(threw, false);
16+
});
17+
}

0 commit comments

Comments
 (0)