From 80aa4faa3846f12a63e8fb433333cdbd2c2bc204 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Crozet=20S=C3=A9bastien?= Date: Mon, 1 Mar 2021 12:42:44 +0100 Subject: [PATCH] Fix tests for nalgebra-sparse. --- nalgebra-sparse/src/proptest/proptest_patched.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nalgebra-sparse/src/proptest/proptest_patched.rs b/nalgebra-sparse/src/proptest/proptest_patched.rs index 695bc30b..37c71262 100644 --- a/nalgebra-sparse/src/proptest/proptest_patched.rs +++ b/nalgebra-sparse/src/proptest/proptest_patched.rs @@ -108,8 +108,8 @@ where // NOTE: The below line is the whole reason for the existence of this adapted code // We need to be able to swap with the same element, so that some elements remain in // place rather being swapped - // let end_index = rng.gen_range(start_index + 1, len); - let end_index = rng.gen_range(start_index, len); + // let end_index = rng.gen_range(start_index + 1..len); + let end_index = rng.gen_range(start_index..len); if end_index - start_index <= max_swap { value.shuffle_swap(start_index, end_index); }