1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-01-24 04:16:27 +02:00
goreleaser/pipeline/build/build_test.go

16 lines
231 B
Go
Raw Normal View History

2017-01-14 14:29:01 -02:00
package build
2016-12-30 16:48:55 -02:00
import (
"testing"
2016-12-31 14:07:58 -02:00
2016-12-30 16:52:50 -02:00
"github.com/stretchr/testify/assert"
2016-12-30 16:48:55 -02:00
)
func TestExtWindows(t *testing.T) {
2017-01-06 11:14:55 -02:00
assert.Equal(t, extFor("windows"), ".exe")
2016-12-30 16:48:55 -02:00
}
func TestExtOthers(t *testing.T) {
2017-01-06 11:14:55 -02:00
assert.Empty(t, extFor("linux"))
2016-12-30 16:48:55 -02:00
}