add test for OuiLookup

This commit is contained in:
Kent Gruber 2018-05-01 15:47:33 -04:00
parent 90676d0289
commit 29ec4edc63

View file

@ -7,3 +7,12 @@ func TestOuiVar(t *testing.T) {
t.Error("unable to find any oui infromation")
}
}
func TestOuiLookup(t *testing.T) {
exampleMac := "e0:0c:7f:XX:XX:XX"
exp := "Nintendo Co."
got := OuiLookup(exampleMac)
if got != exp {
t.Fatalf("expected '%s', got '%s'", exp, got)
}
}