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 2ae9fde commit 4052916
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/extensions/sequence.rs
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,12 @@ where
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_with
let a = a_source.clone();
let e = e_source.clone();
assert_seq_equal(a.pad_left_with(5, |i| 2 * i as i64), vec![0, 2, 1, 2, 3]);
assert_seq_equal(e.pad_left_with(1, |i| 2 * i as i64), vec![2]);

// // rev
// assert_equal(repeated.clone().rev(), vec![3, 2, 2, 1]);
// assert_equal(empty.clone().rev(), vec![]);
Expand Down

0 comments on commit 4052916

Please sign in to comment.