Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Ockajak committed Jul 19, 2024
1 parent 4b107ac commit 2ae9fde
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions tests/extensions/sequence.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use crate::extensions::util::{assert_seq_equal, assert_vec_seq_equal, Equal};
#[allow(box_pointers)]
pub(crate) fn test_sequence<'a, C, I>()
where
I: DoubleEndedIterator<Item = i64>,
I: DoubleEndedIterator<Item = i64> + ExactSizeIterator<Item = i64>,
C: Sequence<i64>
+ FromIterator<i64>
+ IntoIterator<Item = i64, IntoIter = I>
Expand Down Expand Up @@ -276,11 +276,11 @@ where
assert_seq_equal(a.move_at(1, 1), vec![1, 2, 3]);
assert!(panic::catch_unwind(|| { e.move_at(0, 0) }).is_err());

// pad_left - FIXME - implement test
// let a = a_source.clone();
// let e = e_source.clone();
// assert_seq_equal(a.pad_left(5, 4), vec![4, 4, 1, 2, 3]);
// assert_seq_equal(e.pad_left(1, 1), vec![1]);
// pad_left
let a = a_source.clone();
let e = e_source.clone();
assert_seq_equal(a.pad_left(5, 4), vec![4, 4, 1, 2, 3]);
assert_seq_equal(e.pad_left(1, 1), vec![1]);

// // rev
// assert_equal(repeated.clone().rev(), vec![3, 2, 2, 1]);
Expand Down
4 changes: 2 additions & 2 deletions tests/extensions/traits.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ where

pub(crate) fn test_sequence_traits<'a, C, I>(empty: C)
where
I: DoubleEndedIterator<Item = i64>,
I: DoubleEndedIterator<Item = i64> + ExactSizeIterator<Item = i64>,
C: Traversable<i64>
+ Collectible<i64>
+ Ordered<i64>
Expand All @@ -77,7 +77,7 @@ where

pub(crate) fn test_list_traits<'a, C, I>(empty: C)
where
I: DoubleEndedIterator<Item = i64>,
I: DoubleEndedIterator<Item = i64> + ExactSizeIterator<Item = i64>,
C: Traversable<i64>
+ Collectible<i64>
+ Ordered<i64>
Expand Down

0 comments on commit 2ae9fde

Please sign in to comment.