Skip to content

Commit

Permalink
Remove incorrect diagnostic logging tests
Browse files Browse the repository at this point in the history
  • Loading branch information
LakshanWeerasinghe committed Jan 17, 2024
1 parent 6080bc7 commit 1f6fadf
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,6 @@ public void constExpressionNegative() {
BAssertUtil.validateError(compileResult1, i++, "'-9.223372036854776E18' is out of range for 'int'", 47, 20);
BAssertUtil.validateError(compileResult1, i++, "'9223372036854775808' is out of range for 'int'", 47, 21);
BAssertUtil.validateError(compileResult1, i++, "illegal cyclic reference '[CONST5]'", 49, 1);
BAssertUtil.validateError(compileResult1, i++, "cannot declare a constant with type 'T', " +
"expected a subtype of 'anydata' that is not 'never'", 49, 7);
Assert.assertEquals(compileResult1.getErrorCount(), i);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,6 @@ public void testNegative() {
9, 14);
BAssertUtil.validateError(compileResult, index++, "'_' is a keyword, and may not be used as an identifier",
10, 7);
BAssertUtil.validateError(compileResult, index++, "cannot declare a constant with type 'invalidType', " +
"expected a subtype of 'anydata' that is not 'never'",
12, 7);
BAssertUtil.validateError(compileResult, index++, "unknown type 'invalidType'",
12, 7);
BAssertUtil.validateError(compileResult, index++, "cannot update constant value", 26, 5);
Expand Down Expand Up @@ -115,9 +112,6 @@ public void testNegative() {
280, 7);
BAssertUtil.validateError(compileResult, index++, "constant declaration not yet supported for " +
"type 'string:Char'", 286, 14);
BAssertUtil.validateError(compileResult, index++, "cannot declare a constant with type 'Bar', " +
"expected a subtype of 'anydata' that is not 'never'",
294, 7);
BAssertUtil.validateError(compileResult, index++, "expression is not a constant expression",
294, 17);
BAssertUtil.validateError(compileResult, index++, "constant declarations are allowed only at module level",
Expand Down

0 comments on commit 1f6fadf

Please sign in to comment.