Add tests/types/eui48.rs to excercise MacAddress::parse_str() functionality in canonical form

This commit is contained in:
Andrew Baumhauer 2016-02-13 21:00:44 -06:00
parent bd58d5dca4
commit b6478d29ab

9
tests/types/eui48.rs Normal file
View File

@ -0,0 +1,9 @@
extern crate eui48;
use types::test_type;
#[test]
fn test_eui48_params() {
test_type("MACADDR", &[(Some(eui48::MacAddress::parse_str("12-34-56-AB-CD-EF").unwrap()),
"'12-34-56-ab-cd-ef'"), (None, "NULL")])
}