Skip to content

Commit

Permalink
Update fuzzer internal state when performing filter action (#836)
Browse files Browse the repository at this point in the history
  • Loading branch information
robert3005 committed Sep 16, 2024
1 parent 276210b commit 8abe1dd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fuzz/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -139,10 +139,10 @@ impl<'a> Arbitrary<'a> for FuzzArrayAction {
let mask = (0..current_array.len())
.map(|_| bool::arbitrary(u))
.collect::<Result<Vec<_>>>()?;
let filtered = filter_canonical_array(&current_array, &mask);
current_array = filter_canonical_array(&current_array, &mask);
(
Action::Filter(BoolArray::from(mask).into_array()),
ExpectedValue::Array(filtered),
ExpectedValue::Array(current_array.clone()),
)
}
_ => unreachable!(),
Expand Down

0 comments on commit 8abe1dd

Please sign in to comment.