diff --git a/network/oui_test.go b/network/oui_test.go index e54e6720..1973d81a 100644 --- a/network/oui_test.go +++ b/network/oui_test.go @@ -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) + } +}