Add some tests (#3030)

This commit is contained in:
qwerty287
2023-12-27 10:36:49 +01:00
committed by GitHub
parent 5cb0ae053a
commit e575ffe72d
9 changed files with 117 additions and 2 deletions

View File

@@ -58,7 +58,7 @@ func sliceToCountMap[E comparable](list []E) map[E]int {
return m
}
// sliceToMap is a helper function to convert a string slice to a map.
// SliceToBoolMap is a helper function to convert a string slice to a map.
func SliceToBoolMap(s []string) map[string]bool {
v := map[string]bool{}
for _, ss := range s {