Fix test.

This commit is contained in:
Fedor Korotkiy 2020-02-01 03:41:38 +03:00
parent e9abc1368e
commit 38decbb90a

View file

@ -18,7 +18,7 @@ func absPaths(files []string ) []string {
func TestListTestFiles(t *testing.T) { func TestListTestFiles(t *testing.T) {
require.Equal(t, require.Equal(t,
absPaths([]string{"sum/private_test.go", "sum/public_test.go",}), absPaths([]string{"sum/private_test.go", "sum/public_test.go"}),
listTestFiles("../testdata/list")) listTestFiles("../testdata/list"))
} }
@ -30,6 +30,6 @@ func TestProtectedFiles(t *testing.T) {
func TestPrivateFiles(t *testing.T) { func TestPrivateFiles(t *testing.T) {
require.Equal(t, require.Equal(t,
absPaths([]string{"sum/solution.go.go", "sum/private_test.go"}), absPaths([]string{"sum/private_test.go", "sum/solution.go"}),
listProtectedFiles("../testdata/list")) listPrivateFiles("../testdata/list"))
} }