Lines Matching defs:offset
924 fn offset() {
934 assert_eq!(a.offset(i) + i.len(), a.len());
936 _ => panic!("wrong return type in offset test for alpha"),
940 assert_eq!(b.offset(i) + i.len(), b.len());
942 _ => panic!("wrong return type in offset test for digit"),
946 assert_eq!(c.offset(i) + i.len(), c.len());
948 _ => panic!("wrong return type in offset test for alphanumeric"),
952 assert_eq!(d.offset(i) + i.len(), d.len());
954 _ => panic!("wrong return type in offset test for space"),
958 assert_eq!(e.offset(i) + i.len(), e.len());
960 _ => panic!("wrong return type in offset test for multispace"),
964 assert_eq!(f.offset(i) + i.len(), f.len());
966 _ => panic!("wrong return type in offset test for hex_digit"),
970 assert_eq!(f.offset(i) + i.len(), f.len());
972 _ => panic!("wrong return type in offset test for oct_digit"),