cob: split up typename tests
The test name being used is `valid_typenames`, however it tests for invalid `TypeName`s as well. The invalid `TypeName` tests are now separated into another test called `invalid_typenames`.
This commit is contained in:
parent
204db22bbe
commit
fe09cd4a00
|
|
@ -89,6 +89,10 @@ mod test {
|
|||
assert!(TypeName::from_str("abc.123.ghi").is_ok());
|
||||
assert!(TypeName::from_str("1bc.123.ghi").is_ok());
|
||||
assert!(TypeName::from_str("1bc-123.ghi").is_ok());
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn invalid_typenames() {
|
||||
assert!(TypeName::from_str("").is_err());
|
||||
assert!(TypeName::from_str(".").is_err());
|
||||
assert!(TypeName::from_str(".abc.123.ghi").is_err());
|
||||
|
|
|
|||
Loading…
Reference in New Issue