Skip to content
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

Added permutation counting, variable definitions to parser test generation #59

Merged
merged 1 commit into from
Dec 1, 2023

Conversation

Hydrocharged
Copy link
Collaborator

This adds the ability to count the number of permutations without having to actually loop through them all and increment one by one. This also adds variable declaration support (the where VAR is one of: in the synopsis). With those two, I can now verify that with some of the variables defined in SELECT, we're up to 144 septillion variations lol. I also removed the repetition strategy, which cut out a ton of tests that probably weren't necessary (exponential on top of combinatorial).

This is a prelude to the next PR. I've found a strategy to be able to grab a deterministic set of tests (we can randomly decide the set, but given the proper input it's deterministic), but it requires knowing the number of possible permutations ahead of time, hence this PR.

@Hydrocharged Hydrocharged requested a review from zachmu November 30, 2023 14:13
@Hydrocharged Hydrocharged changed the title Added permutation counting, variable definitions Added permutation counting, variable definitions to parser test generation Nov 30, 2023
Copy link
Member

@zachmu zachmu left a comment

Choose a reason for hiding this comment

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

LGTM, no notes

@Hydrocharged Hydrocharged merged commit 06567ef into main Dec 1, 2023
6 checks passed
@Hydrocharged Hydrocharged deleted the daylon/cd-permutations branch December 1, 2023 00:50
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.

2 participants