Skip to content

Commit

Permalink
Fix test failure
Browse files Browse the repository at this point in the history
  • Loading branch information
TharmiganK committed Jun 13, 2024
1 parent 6bf8af5 commit c2c4303
Showing 1 changed file with 13 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -400,22 +400,21 @@ public void testResourceErrorPositions() {
Package currentPackage = loadPackage("sample_package_15");
PackageCompilation compilation = currentPackage.getCompilation();
DiagnosticResult diagnosticResult = compilation.diagnosticResult();
Assert.assertEquals(diagnosticResult.errorCount(), 14);
Assert.assertEquals(diagnosticResult.errorCount(), 13);
// only testing the error locations
assertErrorPosition(diagnosticResult, 0, "(29:44,29:60)");
assertErrorPosition(diagnosticResult, 1, "(34:5,34:12)");
assertErrorPosition(diagnosticResult, 2, "(42:86,42:87)");
assertErrorPosition(diagnosticResult, 3, "(46:57,46:60)");
assertErrorPosition(diagnosticResult, 4, "(50:63,50:66)");
assertErrorPosition(diagnosticResult, 5, "(54:66,54:69)");
assertErrorPosition(diagnosticResult, 6, "(58:77,58:80)");
assertErrorPosition(diagnosticResult, 7, "(62:76,62:79)");
assertErrorPosition(diagnosticResult, 8, "(66:76,66:82)");
assertErrorPosition(diagnosticResult, 9, "(73:45,73:46)");
assertErrorPosition(diagnosticResult, 10, "(81:43,81:46)");
assertErrorPosition(diagnosticResult, 11, "(81:61,81:64)");
assertErrorPosition(diagnosticResult, 12, "(81:79,81:82)");
assertErrorPosition(diagnosticResult, 13, "(85:77,85:93)");
assertErrorPosition(diagnosticResult, 1, "(42:86,42:87)");
assertErrorPosition(diagnosticResult, 2, "(46:57,46:60)");
assertErrorPosition(diagnosticResult, 3, "(50:63,50:66)");
assertErrorPosition(diagnosticResult, 4, "(54:66,54:69)");
assertErrorPosition(diagnosticResult, 5, "(58:77,58:80)");
assertErrorPosition(diagnosticResult, 6, "(62:76,62:79)");
assertErrorPosition(diagnosticResult, 7, "(66:76,66:82)");
assertErrorPosition(diagnosticResult, 8, "(73:45,73:46)");
assertErrorPosition(diagnosticResult, 9, "(81:43,81:46)");
assertErrorPosition(diagnosticResult, 10, "(81:61,81:64)");
assertErrorPosition(diagnosticResult, 11, "(81:79,81:82)");
assertErrorPosition(diagnosticResult, 12, "(85:77,85:93)");
}

@Test
Expand Down

0 comments on commit c2c4303

Please sign in to comment.