We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
ExactlyOneError
1 parent 5f3cb52 commit a90f095Copy full SHA for a90f095
tests/specializations.rs
@@ -330,6 +330,17 @@ quickcheck! {
330
test_specializations(&it);
331
test_double_ended_specializations(&it);
332
}
333
+
334
+ fn exactly_one_error(v: Vec<u8>) -> TestResult {
335
+ // Use `at_most_one` would be similar.
336
+ match v.iter().exactly_one() {
337
+ Ok(_) => TestResult::discard(),
338
+ Err(it) => {
339
+ test_specializations(&it);
340
+ TestResult::passed()
341
+ }
342
343
344
345
346
quickcheck! {
0 commit comments