mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-02-07 13:31:37 +02:00
23 lines
403 B
Go
23 lines
403 B
Go
package gio
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/require"
|
|
)
|
|
|
|
func TestEqualFilesError(t *testing.T) {
|
|
tests := []struct {
|
|
a string
|
|
b string
|
|
}{
|
|
{"./testdata/nope.txt", "./testdata/somefile.txt"},
|
|
{"./testdata/somefile.txt", "./testdata/nope.txt"},
|
|
}
|
|
for _, test := range tests {
|
|
equal, err := EqualFiles(test.a, test.b)
|
|
require.Error(t, err)
|
|
require.False(t, equal)
|
|
}
|
|
}
|