test that sense/form IDs don't parse as lexeme IDs
This commit is contained in:
parent
30cd0db436
commit
56dc904a9b
1 changed files with 2 additions and 0 deletions
|
@ -197,6 +197,8 @@ pub mod test {
|
||||||
Err(IdParseError::InvalidPrefix)
|
Err(IdParseError::InvalidPrefix)
|
||||||
);
|
);
|
||||||
assert_eq!(Sid::from_str("L1341-S123").unwrap(), Sid(Lid(1341), 123));
|
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]
|
#[test]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue