Function
assert_eq_slice
(
db: &dyn Db,
input: &[char; N],
start: Option<i32>,
stop: Option<i32>,
step: Option<i32>,
expected: &[char; M],
)
Source from the content-addressed store, hash-verified
| 316 | |
| 317 | #[track_caller] |
| 318 | fn assert_eq_slice<const N: usize, const M: usize>( |
| 319 | db: &dyn Db, |
| 320 | input: &[char; N], |
| 321 | start: Option<i32>, |
| 322 | stop: Option<i32>, |
| 323 | step: Option<i32>, |
| 324 | expected: &[char; M], |
| 325 | ) { |
| 326 | assert_equal( |
| 327 | input.py_slice(db, start, stop, step).unwrap().collect_vec(), |
| 328 | expected.iter().copied().collect_vec(), |
| 329 | ); |
| 330 | } |
| 331 | |
| 332 | #[test] |
| 333 | fn py_slice_empty_input() { |