summaryrefslogtreecommitdiff
path: root/pbt/ts/src/property.ts
diff options
context:
space:
mode:
authorArnaud Bailly <arnaud.bailly@iohk.io>2025-01-26 09:10:02 +0100
committerArnaud Bailly <arnaud.bailly@iohk.io>2025-01-26 09:10:02 +0100
commitfbfaafbc5711368234f9f92ad67ffa03f558a6fb (patch)
treea20e3eec9ea687ed4d0a650463bebe99aeeca5ed /pbt/ts/src/property.ts
parent3c4e2ba00776a492a7ccb060435e54b5a34a5188 (diff)
downloadlambda-nantes-fbfaafbc5711368234f9f92ad67ffa03f558a6fb.tar.gz
Report reverse/reverse property
Diffstat (limited to 'pbt/ts/src/property.ts')
-rw-r--r--pbt/ts/src/property.ts3
1 files changed, 1 insertions, 2 deletions
diff --git a/pbt/ts/src/property.ts b/pbt/ts/src/property.ts
index 40e32c5..a8c59ba 100644
--- a/pbt/ts/src/property.ts
+++ b/pbt/ts/src/property.ts
@@ -29,7 +29,6 @@ function findMinimalCounterExample<A>(x: A,
let shrinks = depth;
for (let y of xs) {
if (!predicate(y)) {
- console.log("Shrinking with " + y);
let shrink = findMinimalCounterExample(y, predicate, shrinker, depth + 1);
if (shrink.shrinks > depth) {
counterexample = shrink.counterexample;
@@ -58,7 +57,7 @@ export function property<A>(
let x = gen(size);
if (!predicate(x)) {
let counterexample = findMinimalCounterExample(x, predicate, shrinker);
- return { result: 'Falsified', tests: i, counterexample };
+ return { result: 'Falsified', tests: i+1, counterexample };
}
size++;
}