()
| 466 | |
| 467 | #[test] |
| 468 | fn test_insert_position_to_index() { |
| 469 | assert_eq!(InsertPosition::Start.to_insert_index(5), 0); |
| 470 | assert_eq!(InsertPosition::After(0).to_insert_index(5), 1); |
| 471 | assert_eq!(InsertPosition::After(2).to_insert_index(5), 3); |
| 472 | assert_eq!(InsertPosition::End.to_insert_index(5), 5); |
| 473 | } |
| 474 | |
| 475 | #[test] |
| 476 | fn test_insert_position_is_start() { |
nothing calls this directly
no outgoing calls
no test coverage detected