diff options
Diffstat (limited to 'soundbox/soundbox_test.go')
-rw-r--r-- | soundbox/soundbox_test.go | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/soundbox/soundbox_test.go b/soundbox/soundbox_test.go deleted file mode 100644 index 6a5cde3..0000000 --- a/soundbox/soundbox_test.go +++ /dev/null @@ -1,25 +0,0 @@ -package soundbox - -import ( - "testing" -) - -func TestNewSoundbox(t *testing.T) { - // valid MAC should succeed - _, err := NewSoundbox("12:34:56:ab:cd:ef") - if err != nil { - t.Errorf("NewSoundbox() failed: %v", err) - } - - // invalid MAC should fail - _, err = NewSoundbox("12:34:56:ab:cd") - if err == nil { - t.Errorf("NewSoundbox() failed: %v", err) - } - - // No EUI-64 supported - _, err = NewSoundbox("12:34:56:ab:cd:ef:12:45") - if err == nil { - t.Errorf("NewSoundbox() failed: %v", err) - } -} |