Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for presentInMap (0.12 sec)

  1. 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)
Back to top