aboutsummaryrefslogtreecommitdiff
path: root/pkg/u/list_test.go
diff options
context:
space:
mode:
authorGabriel A. Giovanini <mail@gabrielgio.me>2024-07-01 23:32:54 +0200
committerGabriel A. Giovanini <mail@gabrielgio.me>2024-07-01 23:32:54 +0200
commit1b1460c8d4fa358433c51fd5293fd1c79f32aeff (patch)
treeb87528374798941a89e07ead5b92c2842deb40b6 /pkg/u/list_test.go
parent8f9853c8e26ffbad74e6414cec31104281a3860b (diff)
downloadcerrado-0.0.9.tar.gz
cerrado-0.0.9.tar.bz2
cerrado-0.0.9.zip
feat: Add pathing to the tree tabv0.0.9
Diffstat (limited to 'pkg/u/list_test.go')
-rw-r--r--pkg/u/list_test.go30
1 files changed, 0 insertions, 30 deletions
diff --git a/pkg/u/list_test.go b/pkg/u/list_test.go
index 3a856b9..805a209 100644
--- a/pkg/u/list_test.go
+++ b/pkg/u/list_test.go
@@ -3,7 +3,6 @@
package u
import (
- "strconv"
"testing"
"github.com/google/go-cmp/cmp"
@@ -130,32 +129,3 @@ func TestFirstOrZero(t *testing.T) {
})
}
}
-
-func TestMap(t *testing.T) {
- testCases := []struct {
- name string
- in []int
- out []string
- }{
- {
- name: "empty",
- in: []int{},
- out: []string{},
- },
- {
- name: "not empty",
- in: []int{1, 2, 3},
- out: []string{"1", "2", "3"},
- },
- }
-
- for _, tc := range testCases {
- t.Run(tc.name, func(t *testing.T) {
- out := Map(tc.in, func(v int) string { return strconv.Itoa(v) })
-
- if diff := cmp.Diff(tc.out, out); diff != "" {
- t.Errorf("Map error:\n%s", diff)
- }
- })
- }
-}