1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-01-26 04:22:05 +02:00
goreleaser/internal/linux/arch_test.go

24 lines
388 B
Go
Raw Normal View History

2017-08-27 13:18:23 -03:00
package linux
import (
"fmt"
"testing"
"github.com/stretchr/testify/assert"
)
func TestArch(t *testing.T) {
for from, to := range map[string]string{
"amd64": "amd64",
"386": "i386",
"arm64": "arm64",
"arm6": "armel",
"arm7": "armhf",
2017-08-27 13:18:23 -03:00
"what": "what",
} {
t.Run(fmt.Sprintf("%s to %s", from, to), func(t *testing.T) {
assert.Equal(t, to, Arch(from))
})
}
}