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

Fuzz more intervals #68

Merged
merged 3 commits into from
Dec 5, 2024
Merged

Fuzz more intervals #68

merged 3 commits into from
Dec 5, 2024

Conversation

joshdavham
Copy link
Member

In #64, I added fuzzing, but this was only for Review-state cards that had been given a succesful rating of Hard, Good or Easy. I'm thinking it would also make sense to fuzz any interval that is not a user-defined learning or a relearning step.

In this PR, I made it so that the intervals of cards graduating from the re/learning steps now get fuzzed. Also, I made it so that Review-state cards, when rated Again with no relearning steps specified in the scheduler now also get fuzzed.

Let me know if this makes sense or if you have any questions 👍

@L-M-Sherlock
Copy link
Member

Too many lines of the same code. Is it possible to wrap it into next_interval?

@joshdavham
Copy link
Member Author

joshdavham commented Dec 5, 2024

I managed to reduce the amount of repetitions of that fuzzing clause down to just one clause with the same effect as before.

Let me know if this seems better!

Copy link
Member

@L-M-Sherlock L-M-Sherlock left a comment

Choose a reason for hiding this comment

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

LGTM

@joshdavham joshdavham added this pull request to the merge queue Dec 5, 2024
Merged via the queue into main with commit 2d12f41 Dec 5, 2024
5 checks passed
@joshdavham joshdavham deleted the fuzz-graduating-intervals branch December 5, 2024 17:57
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