chk_vec!(l.all_mut_safe());
chk_vec!(l.all_mut_fast());
+ l.prepend(s("one")); l.check_consistency();
+ assert_eq!(l.head_and_tail_mut(), H::Both(&mut s("one"), &mut s("ho")));
+
write!(l.front_mut().unwrap(), "!").unwrap();
- assert_eq!(l.pop_front(), Some(s("hi!"))); l.check_consistency();
- assert_eq!(l.front(), Some(&s("ho"))); l.check_consistency();
+ assert_eq!(l.pop_front(), Some(s("one!"))); l.check_consistency();
+ assert_eq!(l.front(), Some(&s("hi"))); l.check_consistency();
drop(l);
}