mirror of
https://github.com/sascha-hemi/spaceDevices.git
synced 2026-03-21 12:05:46 +01:00
15 lines
386 B
Go
15 lines
386 B
Go
package db
|
|
|
|
import "testing"
|
|
import (
|
|
"github.com/stretchr/testify/assert"
|
|
)
|
|
|
|
func Test_IsMacLocallyAdministered(t *testing.T) {
|
|
assert.True(t, IsMacLocallyAdministered("06:00:00:00:00:00"))
|
|
assert.True(t, IsMacLocallyAdministered("62:01:0f:b5:f2:d9"))
|
|
assert.False(t, IsMacLocallyAdministered("20:c9:d0:7a:fa:31"))
|
|
|
|
assert.True(t, IsMacLocallyAdministered("d4:38:9c:01:dd:03"))
|
|
}
|