From 38decbb90a9e686776fc85cd0e3f16184cb3ffd8 Mon Sep 17 00:00:00 2001 From: Fedor Korotkiy Date: Sat, 1 Feb 2020 03:41:38 +0300 Subject: [PATCH] Fix test. --- tools/testtool/commands/list_test.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tools/testtool/commands/list_test.go b/tools/testtool/commands/list_test.go index ecad141..d402bea 100644 --- a/tools/testtool/commands/list_test.go +++ b/tools/testtool/commands/list_test.go @@ -7,7 +7,7 @@ import ( "github.com/stretchr/testify/require" ) -func absPaths(files []string ) []string { +func absPaths(files []string) []string { var abs []string for _, f := range files { absPath, _ := filepath.Abs("../testdata/list/" + f) @@ -18,7 +18,7 @@ func absPaths(files []string ) []string { func TestListTestFiles(t *testing.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")) } @@ -30,6 +30,6 @@ func TestProtectedFiles(t *testing.T) { func TestPrivateFiles(t *testing.T) { require.Equal(t, - absPaths([]string{"sum/solution.go.go", "sum/private_test.go"}), - listProtectedFiles("../testdata/list")) -} \ No newline at end of file + absPaths([]string{"sum/private_test.go", "sum/solution.go"}), + listPrivateFiles("../testdata/list")) +}