Skip to content

Commit

Permalink
test permutations on a type other than usize
Browse files Browse the repository at this point in the history
  • Loading branch information
ronnodas committed Jan 8, 2025
1 parent 76c5ce6 commit 1959799
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1819,10 +1819,10 @@ pub trait Itertools: Iterator {
/// ```
/// use itertools::Itertools;
///
/// let it = vec![2, 2].into_iter().array_permutations();
/// let it = vec![-2, -2].into_iter().array_permutations();
/// itertools::assert_equal(it, vec![
/// [2, 2], // Note: these are the same
/// [2, 2], // Note: these are the same
/// [-2, -2], // Note: these are the same
/// [-2, -2], // Note: these are the same
/// ]);
/// ```
///
Expand Down Expand Up @@ -1868,10 +1868,10 @@ pub trait Itertools: Iterator {
/// ```
/// use itertools::Itertools;
///
/// let it = vec![2, 2].into_iter().permutations(2);
/// let it = vec![-2, -2].into_iter().permutations(2);
/// itertools::assert_equal(it, vec![
/// vec![2, 2], // Note: these are the same
/// vec![2, 2], // Note: these are the same
/// vec![-2, -2], // Note: these are the same
/// vec![-2, -2], // Note: these are the same
/// ]);
/// ```
///
Expand Down

0 comments on commit 1959799

Please sign in to comment.