-
Notifications
You must be signed in to change notification settings - Fork 117
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
Draft: pretty-printer tests with randomly generated AST Expressions #1248
base: main
Are you sure you want to change the base?
Conversation
when I see something like this, I immediately think of adding shrinking (fast-check should support it)
even shrinking integer literals would already help a lot here |
I'm thinking about that right now. It might become more user- friendly values value: fc.bigInt({ min: -1_000_000_000n, max: 1_000_000_000n }) |
80ca1e6
to
88786b8
Compare
@xpyctumo I took the liberty to merge the new parser into your branch and pushed a few fixes for the expressions generator too. Looks like the new parser fixed the issue with duplicated unary operators! |
Btw, these fuzzing-like tests should go into their own folder and only gets executed on a special request, separately from |
f5d0f1f
to
ccdf98c
Compare
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
Issue
Towards #642
Checklist
docs/
and made the build locallya--b
anda++b
#1247Plan