- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for presentInMap (0.12 sec)
-
src/fmt/fmt_test.go
a := []string{"1:one", "2:two", "3:three"} presentInMap(Sprintf("%v", m1), a, t) presentInMap(Sprint(m1), a, t) // Pointer to map prints the same but with initial &. if !strings.HasPrefix(Sprint(&m1), "&") { t.Errorf("no initial & for address of map") } presentInMap(Sprintf("%v", &m1), a, t) presentInMap(Sprint(&m1), a, t) } func TestEmptyMap(t *testing.T) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 04 17:31:55 UTC 2024 - 58.6K bytes - Viewed (0)