MCPcopy Create free account
hub / github.com/douchuan/algorithm / normal

Function normal

tests/test_linked_list.rs:4–14  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2
3#[test]
4fn normal() {
5 let data = vec![1, 2, 3, 4, 5];
6 let ll = create_ll(&data);
7
8 //len
9 assert_eq!(ll.len(), data.len());
10
11 //verify data
12 let ll_data: Vec<i32> = ll.into_iter().collect();
13 assert_eq!(ll_data, data);
14}
15
16#[test]
17fn push_front() {

Callers

nothing calls this directly

Calls 2

create_llFunction · 0.85
into_iterMethod · 0.80

Tested by

no test coverage detected