Skip to content

Commit

Permalink
Fix failing formatter test
Browse files Browse the repository at this point in the history
  • Loading branch information
poorna2152 committed Nov 20, 2023
1 parent 1fb2f85 commit f95c5fb
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -150,13 +150,7 @@
"children": [
{
"kind": "IDENTIFIER_TOKEN",
"value": "a",
"trailingMinutiae": [
{
"kind": "WHITESPACE_MINUTIAE",
"value": " "
}
]
"value": "a"
}
]
},
Expand Down Expand Up @@ -346,13 +340,7 @@
]
},
{
"kind": "DOUBLE_QUOTE_TOKEN",
"trailingMinutiae": [
{
"kind": "WHITESPACE_MINUTIAE",
"value": " "
}
]
"kind": "DOUBLE_QUOTE_TOKEN"
}
]
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
function foo() {
xml x1 = xml `<a /a>`;
xml x2 = xml `<a n="a" /a>`;
xml x1 = xml `<a/a>`;
xml x2 = xml `<a n="a"/a>`;
}
Original file line number Diff line number Diff line change
Expand Up @@ -211,8 +211,8 @@ public void testXMLNegativeSemantics() {
"'(xml<xml:Element>|xml:Text)', found 'xml'", 149, 39);
BAssertUtil.validateError(negativeResult, index++, "incompatible types: expected " +
"'(xml<xml<xml:Text>>|xml<xml<xml:Comment>>)', found 'xml'", 150, 54);
BAssertUtil.validateError(negativeResult, index++, "missing gt token", 154, 23);
BAssertUtil.validateError(negativeResult, index++, "missing gt token", 155, 29);
BAssertUtil.validateError(negativeResult, index++, "missing gt token", 154, 22);
BAssertUtil.validateError(negativeResult, index++, "missing gt token", 155, 28);
Assert.assertEquals(index, negativeResult.getErrorCount());
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,6 @@ function textInvalidXmlSequence() {
}

function testMissingClosingGTToken() {
xml x1 = xml `<a /a>`;
xml x2 = xml `<a n="a" /a>`;
xml x1 = xml `<a/a>`;
xml x2 = xml `<a n="a"/a>`;
}

0 comments on commit f95c5fb

Please sign in to comment.