test that sense/form IDs don't parse as lexeme IDs

This commit is contained in:
Smitty 2021-09-05 15:25:24 -04:00
parent 30cd0db436
commit 56dc904a9b

View file

@ -197,6 +197,8 @@ pub mod test {
Err(IdParseError::InvalidPrefix)
);
assert_eq!(Sid::from_str("L1341-S123").unwrap(), Sid(Lid(1341), 123));
assert!(Lid::from_str("L1341-S123").is_err());
assert!(Lid::from_str("L1341-F123").is_err());
}
#[test]