Skip to content

Commit afaaa5f

Browse files
committed
fix: Array operations fuzzing actually fuzzes compare function
1 parent 281c5d9 commit afaaa5f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

fuzz/src/lib.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ impl<'a> Arbitrary<'a> for FuzzArrayAction {
7777
let valid_actions = actions_for_array(&current_array);
7878

7979
let mut actions = Vec::new();
80-
let action_count = u.int_in_range(1..=5)?;
80+
let action_count = u.int_in_range(1..=4)?;
8181
for _ in 0..action_count {
8282
actions.push(match random_value_from_list(u, valid_actions.as_slice())? {
8383
0 => {
@@ -199,7 +199,7 @@ fn random_value_from_list(u: &mut Unstructured<'_>, vec: &[usize]) -> Result<usi
199199
u.choose_iter(vec).cloned()
200200
}
201201

202-
const ALL_ACTIONS: RangeInclusive<usize> = 0..=4;
202+
const ALL_ACTIONS: RangeInclusive<usize> = 0..=5;
203203

204204
fn actions_for_encoding(encoding_id: EncodingId) -> HashSet<usize> {
205205
if ListEncoding.id() == encoding_id {

0 commit comments

Comments
 (0)