Skip to content

Commit b2274df

Browse files
committed
rename unstableAntlrTests
1 parent b098276 commit b2274df

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

tests/config/run-format-test.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ const testsWithAstChanges = new Map(
6464
}),
6565
);
6666

67-
const unstableAntlrTests = new Map(
67+
const antlrMismatchTests = new Map(
6868
[
6969
// Better placement of comments in Slang.
7070
"BasicIterator/BasicIterator.sol",
@@ -100,8 +100,8 @@ const isAstUnstable = (filename, options) => {
100100
return testFunction(options);
101101
};
102102

103-
const isAntlrUnstable = (filename, options) => {
104-
const testFunction = unstableAntlrTests.get(filename);
103+
const isAntlrMismatch = (filename, options) => {
104+
const testFunction = antlrMismatchTests.get(filename);
105105

106106
if (!testFunction) {
107107
return false;
@@ -323,7 +323,7 @@ async function runTest({
323323

324324
if (
325325
formatOptions.parser === "slang-solidity" &&
326-
!isAntlrUnstable(filename, formatOptions)
326+
!isAntlrMismatch(filename, formatOptions)
327327
) {
328328
// Compare with ANTLR's format
329329
const prettier = await getPrettier();

0 commit comments

Comments
 (0)