Skip to content

Commit b6478d2

Browse files
author
Andrew Baumhauer
committed
Add tests/types/eui48.rs to excercise MacAddress::parse_str() functionality in canonical form
1 parent bd58d5d commit b6478d2

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tests/types/eui48.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
extern crate eui48;
2+
3+
use types::test_type;
4+
5+
#[test]
6+
fn test_eui48_params() {
7+
test_type("MACADDR", &[(Some(eui48::MacAddress::parse_str("12-34-56-AB-CD-EF").unwrap()),
8+
"'12-34-56-ab-cd-ef'"), (None, "NULL")])
9+
}

0 commit comments

Comments
 (0)