Lines Matching full:chain
10 let mut chain = e.chain(); in test_iter() localVariable
11 assert_eq!("3", chain.next().unwrap().to_string()); in test_iter()
12 assert_eq!("2", chain.next().unwrap().to_string()); in test_iter()
13 assert_eq!("1", chain.next().unwrap().to_string()); in test_iter()
14 assert_eq!("0", chain.next().unwrap().to_string()); in test_iter()
15 assert!(chain.next().is_none()); in test_iter()
16 assert!(chain.next_back().is_none()); in test_iter()
22 let mut chain = e.chain().rev(); in test_rev() localVariable
23 assert_eq!("0", chain.next().unwrap().to_string()); in test_rev()
24 assert_eq!("1", chain.next().unwrap().to_string()); in test_rev()
25 assert_eq!("2", chain.next().unwrap().to_string()); in test_rev()
26 assert_eq!("3", chain.next().unwrap().to_string()); in test_rev()
27 assert!(chain.next().is_none()); in test_rev()
28 assert!(chain.next_back().is_none()); in test_rev()
34 let mut chain = e.chain(); in test_len() localVariable
35 assert_eq!(4, chain.len()); in test_len()
36 assert_eq!("3", chain.next().unwrap().to_string()); in test_len()
37 assert_eq!(3, chain.len()); in test_len()
38 assert_eq!("0", chain.next_back().unwrap().to_string()); in test_len()
39 assert_eq!(2, chain.len()); in test_len()
40 assert_eq!("2", chain.next().unwrap().to_string()); in test_len()
41 assert_eq!(1, chain.len()); in test_len()
42 assert_eq!("1", chain.next_back().unwrap().to_string()); in test_len()
43 assert_eq!(0, chain.len()); in test_len()
44 assert!(chain.next().is_none()); in test_len()