Skip to content

Antlr/Slang tests #1107

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Mar 25, 2025
Merged

Antlr/Slang tests #1107

merged 4 commits into from
Mar 25, 2025

Conversation

Janther
Copy link
Contributor

@Janther Janther commented Mar 23, 2025

comparing slang and antler formats when testing so we are aware when there is a breaking change.

@Janther Janther requested a review from fvictorio March 23, 2025 02:49
@Janther Janther force-pushed the antlr-slang-tests branch from 4266e81 to 5373cbf Compare March 23, 2025 20:29
Copy link
Member

@fvictorio fvictorio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor comment, but feel free to ignore it and merge if you disagree.

@@ -65,6 +64,22 @@ const testsWithAstChanges = new Map(
}),
);

const unstableAntlrTests = new Map(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very minor, but "unstable" in the context of prettier means something else, which is how we use it below: it means that formatting it twice doesn't produce the same result as formatting it once. This name seems to say that some tests are unstable when using the ANTLR parser, but I think these are instead tests that result in a different output when using ANTLR vs Slang.

Maybe we can use something like divergentTests or antlrMismatchTests, or something like that.

Copy link

@OmarTawfik OmarTawfik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀 🚀

@Janther Janther force-pushed the antlr-slang-tests branch from 5373cbf to b2274df Compare March 25, 2025 10:13
@Janther Janther merged commit 880d33d into v2 Mar 25, 2025
7 checks passed
@Janther Janther deleted the antlr-slang-tests branch March 25, 2025 10:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants