Skip to content
Merged
Show file tree
Hide file tree
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
4 changes: 2 additions & 2 deletions src/float/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ mod cmp {
let (marked_actual, marked_expected) = mark_diff(actual, &self.expected, format);
format!(
"expected {expression} to be {not}close to {:?}\n within a margin of epsilon={:e} and ulps={}\n but was: {marked_actual}\n expected: {marked_expected}",
&self.expected, self.margin.epsilon, self.margin.ulps
self.expected, self.margin.epsilon, self.margin.ulps
)
}
}
Expand All @@ -199,7 +199,7 @@ mod cmp {
let (marked_actual, marked_expected) = mark_diff(actual, &self.expected, format);
format!(
"expected {expression} to be {not}close to {:?}\n within a margin of epsilon={:e} and ulps={}\n but was: {marked_actual}\n expected: {marked_expected}",
&self.expected, self.margin.epsilon, self.margin.ulps
self.expected, self.margin.epsilon, self.margin.ulps
)
}
}
Expand Down
22 changes: 11 additions & 11 deletions src/iterator/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ where
let marked_expected = mark_missing(&self.expected, format);
format!(
"expected {expression} to {not}contain {:?}\n but was: {marked_actual}\n expected: {not}{marked_expected}",
&self.expected,
self.expected,
)
}
}
Expand Down Expand Up @@ -188,7 +188,7 @@ where
expected: {marked_expected}
missing: {missing:?}
extra: {extra:?}",
&self.expected
self.expected
)
}
}
Expand Down Expand Up @@ -257,7 +257,7 @@ where
r"expected {expression} to {not}contain any of {:?}
but was: {marked_actual}
expected: {not}{marked_expected}",
&self.expected,
self.expected,
)
}
}
Expand Down Expand Up @@ -305,7 +305,7 @@ where
but was: {marked_actual}
expected: {marked_expected}
missing: {missing:?}",
&self.expected,
self.expected,
)
}
}
Expand Down Expand Up @@ -351,7 +351,7 @@ where
but was: {marked_actual}
expected: {marked_expected}
extra: {extra:?}",
&self.expected,
self.expected,
)
}
}
Expand Down Expand Up @@ -415,7 +415,7 @@ where
expected: {marked_expected}
extra: {extra:?}
duplicates: {duplicates:?}",
&self.expected,
self.expected,
)
}
}
Expand Down Expand Up @@ -539,7 +539,7 @@ where
missing: {missing:?}
extra: {extra:?}
out-of-order: {out_of_order:?}",
&self.expected,
self.expected,
)
}
}
Expand Down Expand Up @@ -630,7 +630,7 @@ where
expected: {marked_expected}
missing: {missing:?}
extra: {extra:?}",
&self.expected,
self.expected,
)
}
}
Expand Down Expand Up @@ -674,7 +674,7 @@ where
but was: {actual:?}
expected: {marked_expected}
missing: {missing:?}",
&self.expected,
self.expected,
)
}
}
Expand Down Expand Up @@ -727,7 +727,7 @@ where
expected: {marked_expected}
missing: {missing:?}
extra: {extra:?}",
&self.expected,
self.expected,
)
}
}
Expand Down Expand Up @@ -780,7 +780,7 @@ where
expected: {marked_expected}
missing: {missing:?}
extra: {extra:?}",
&self.expected,
self.expected,
)
}
}
Expand Down
Loading
Loading