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

prove_quickcheck_main should be able to dump a test program for counterexamples #1405

Open
grebe opened this issue May 13, 2024 · 0 comments
Labels
enhancement New feature or request ux User experience (end-user invoking XLS and its related tools)

Comments

@grebe
Copy link
Collaborator

grebe commented May 13, 2024

Right now, prove_quickcheck_main dumps the counterexample property. Ideally, for fast interactive testing, it should dump a test suitable for interpreter_main, i.e.

#![quickcheck]
fn prop_A(x) -> bool { f(x) }

should (if one exists) dump a test using a counterexample

#![test]
fn prop_A_counterexample(x) {
  assert_eq(f(counterexample), true)
}
@proppy proppy added enhancement New feature or request dslx DSLX (domain specific language) implementation / front-end ux User experience (end-user invoking XLS and its related tools) and removed dslx DSLX (domain specific language) implementation / front-end labels May 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request ux User experience (end-user invoking XLS and its related tools)
Projects
None yet
Development

No branches or pull requests

2 participants