Skip to content

Commit ff2d490

Browse files
committed
Unskip all typechecker test cases
1 parent 3a98c0d commit ff2d490

File tree

4 files changed

+10
-6
lines changed

4 files changed

+10
-6
lines changed

src/types/checker/__tests__/assignStatements.test.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,7 @@ const testcases: {
2525
int test = 0;
2626
test = 1;
2727
`,
28-
result: { type: null, errors: [] },
29-
only: true
28+
result: { type: null, errors: [] }
3029
},
3130
{
3231
input: `

src/types/checker/__tests__/forStatements.test.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,13 @@ const testcases: {
6464
for (int i = 0; i < 10; i++) {}
6565
`,
6666
result: { type: null, errors: [new VariableAlreadyDefinedError()] }
67+
},
68+
{
69+
input: `
70+
int[] arr = {1, 2, 3, 4, 5};
71+
for (int i = 0; i < arr.length; i++) {}
72+
`,
73+
result: { type: null, errors: [] }
6774
}
6875
]
6976

src/types/checker/__tests__/localVariableDeclarationStatement.test.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,7 @@ const testcases: {
4545
result: {
4646
type: null,
4747
errors: [new IncompatibleTypesError(), new IncompatibleTypesError()]
48-
},
49-
only: true
48+
}
5049
}
5150
]
5251

src/types/checker/__tests__/methodInvocation.test.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,7 @@ const testcases: {
6767
public static void main(String[] args) { int test = getStringLength("Hello World!"); }
6868
public static String getStringLength(String input) { return input; }
6969
`,
70-
result: { type: null, errors: [new IncompatibleTypesError()] },
71-
only: true
70+
result: { type: null, errors: [new IncompatibleTypesError()] }
7271
},
7372
{
7473
input: `

0 commit comments

Comments
 (0)