Fix test.
This commit is contained in:
parent
e9abc1368e
commit
38decbb90a
1 changed files with 5 additions and 5 deletions
|
@ -7,7 +7,7 @@ import (
|
||||||
"github.com/stretchr/testify/require"
|
"github.com/stretchr/testify/require"
|
||||||
)
|
)
|
||||||
|
|
||||||
func absPaths(files []string ) []string {
|
func absPaths(files []string) []string {
|
||||||
var abs []string
|
var abs []string
|
||||||
for _, f := range files {
|
for _, f := range files {
|
||||||
absPath, _ := filepath.Abs("../testdata/list/" + f)
|
absPath, _ := filepath.Abs("../testdata/list/" + f)
|
||||||
|
@ -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"))
|
||||||
}
|
}
|
Loading…
Reference in a new issue