From b6478d29abb37d9b8791842a83d99d30e8a81037 Mon Sep 17 00:00:00 2001 From: Andrew Baumhauer Date: Sat, 13 Feb 2016 21:00:44 -0600 Subject: [PATCH] Add tests/types/eui48.rs to excercise MacAddress::parse_str() functionality in canonical form --- tests/types/eui48.rs | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 tests/types/eui48.rs diff --git a/tests/types/eui48.rs b/tests/types/eui48.rs new file mode 100644 index 00000000..611ed006 --- /dev/null +++ b/tests/types/eui48.rs @@ -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")]) +}