From 56dc904a9b92f6055c4c5027652f0bf8debad161 Mon Sep 17 00:00:00 2001 From: Smitty Date: Sun, 5 Sep 2021 15:25:24 -0400 Subject: [PATCH] test that sense/form IDs don't parse as lexeme IDs --- src/ids.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ids.rs b/src/ids.rs index b172633..95c8c7e 100755 --- a/src/ids.rs +++ b/src/ids.rs @@ -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]