Skip to content

Commit 8cef71f

Browse files
Philippe-Choletjswrenn
authored andcommitted
assert_equal doctest should not be ignored but panic
1 parent dbdbf87 commit 8cef71f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/lib.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3981,9 +3981,10 @@ where
39813981
/// **Panics** on assertion failure with a message that shows the
39823982
/// two iteration elements.
39833983
///
3984-
/// ```ignore
3984+
/// ```should_panic
3985+
/// # use itertools::assert_equal;
39853986
/// assert_equal("exceed".split('c'), "excess".split('c'));
3986-
/// // ^PANIC: panicked at 'Failed assertion Some("eed") == Some("ess") for iteration 1',
3987+
/// // ^PANIC: panicked at 'Failed assertion Some("eed") == Some("ess") for iteration 1'.
39873988
/// ```
39883989
pub fn assert_equal<I, J>(a: I, b: J)
39893990
where

0 commit comments

Comments
 (0)