Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions src/tester.rs
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,14 @@ impl<T: Testable,
let ( $($name,)* ) = a.clone();
let mut r = safe(move || {self_($($name),*)}).result(g);


if r.is_failure() {
// Always retain the first failing arguments, even if shrink does not
// produce another failing candidate.
let t = a.clone();
let ($(ref $name,)*) : ($($name,)*) = t;
r.arguments = Some(debug_reprs(&[$($name),*]));

let mut a = a.shrink();
while let Some(t) = a.next() {
let ($($name,)*) = t.clone();
Expand Down
Loading