Lines Matching defs:offset
887 fn offset() {
897 assert_eq!(a.offset(i) + i.len(), a.len());
899 _ => panic!("wrong return type in offset test for alpha"),
903 assert_eq!(b.offset(i) + i.len(), b.len());
905 _ => panic!("wrong return type in offset test for digit"),
909 assert_eq!(c.offset(i) + i.len(), c.len());
911 _ => panic!("wrong return type in offset test for alphanumeric"),
915 assert_eq!(d.offset(i) + i.len(), d.len());
917 _ => panic!("wrong return type in offset test for space"),
921 assert_eq!(e.offset(i) + i.len(), e.len());
923 _ => panic!("wrong return type in offset test for multispace"),
927 assert_eq!(f.offset(i) + i.len(), f.len());
929 _ => panic!("wrong return type in offset test for hex_digit"),
933 assert_eq!(f.offset(i) + i.len(), f.len());
935 _ => panic!("wrong return type in offset test for oct_digit"),