1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-01-10 03:47:03 +02:00
goreleaser/internal/ext/ext_test.go
Carlos Alexandro Becker 2e0e05134d
refactoring buildtarget
2017-07-06 19:49:21 -03:00

20 lines
536 B
Go

package ext
import (
"testing"
"github.com/goreleaser/goreleaser/internal/buildtarget"
"github.com/stretchr/testify/assert"
)
func TestExtWindows(t *testing.T) {
assert.Equal(t, ".exe", For(buildtarget.New("windows", "", "")))
assert.Equal(t, ".exe", For(buildtarget.New("windows", "adm64", "")))
}
func TestExtOthers(t *testing.T) {
assert.Empty(t, "", For(buildtarget.New("linux", "", "")))
assert.Empty(t, "", For(buildtarget.New("linuxwin", "", "")))
assert.Empty(t, "", For(buildtarget.New("winasdasd", "sad", "6")))
}