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

Bug in tests? #18

Open
Seelengrab opened this issue Dec 7, 2023 · 0 comments
Open

Bug in tests? #18

Seelengrab opened this issue Dec 7, 2023 · 0 comments

Comments

@Seelengrab
Copy link

I think either the comment or the test here is buggy - this seems to check the last element of the testcase being 5, not the second one?

minithesis-rust/src/main.rs

Lines 832 to 836 in c13ff23

// Slightly complex case to make sure it doesn't only check the last ones.
fn second_is_five(tc: &mut TestCase) -> Result<bool, Error> {
let ls = (0..3).map(|_| tc.choice(10).unwrap()).collect::<Vec<_>>();
Ok(ls[2] == 5)
}

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

No branches or pull requests

1 participant