Codebase list golang-github-go-logr-logr / adccc84
Merge pull request #100 from thockin/empty-nil funcr: Add tests for empty and nil map & slice Patrick Ohly authored 2 years ago GitHub committed 2 years ago
1 changed file(s) with 10 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
9797 },
9898 {val: ptrint(93)},
9999 {val: ptrstr("pstrval")},
100 {val: []int{}},
101 {
102 val: []int(nil),
103 exp: `[]`,
104 },
100105 {val: []int{9, 3, 7, 6}},
101106 {val: [4]int{9, 3, 7, 6}},
102107 {
106111 }{
107112 93, "seventy-six",
108113 },
114 },
115 {val: map[string]int{}},
116 {
117 val: map[string]int(nil),
118 exp: `{}`,
109119 },
110120 {
111121 val: map[string]int{