google / google/xls

prove_quickcheck_main should be able to dump a test program for counterexamples

Open
#1,405 0 comments 1 reaction 0 assignees View on GitHub
enhancement ux
Dominant language
C++
Stars
1.9k
Forks
283
Avg merge
2d 10h
Merged PRs (30d)
135

Description

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)
}
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.