Skip to content

Commit 15a2f08

Browse files
committed
Limit the execution to 1-element arrays to avoid long running tests
1 parent e125949 commit 15a2f08

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

usvm-ts/src/test/resources/samples/arrays/ArrayMethods.ts

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,17 @@ class ArrayMethods {
1313
}
1414

1515
arrayPushIntoNumber(x: number[]) {
16-
x.push(123);
17-
return x;
16+
if (x.length == 1) {
17+
x.push(123);
18+
return x;
19+
}
1820
}
1921

2022
arrayPushIntoUnknown(x: any[]) {
21-
x.push(123);
22-
return x;
23+
if (x.length == 1) {
24+
x.push(123);
25+
return x;
26+
}
2327
}
2428

2529
arrayPop(x: boolean) {

0 commit comments

Comments
 (0)