Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for x2val (0.02 sec)

  1. src/runtime/map_test.go

    func TestSingleBucketMapStringKeys_NoDupLen(t *testing.T) {
    	testMapLookups(t, map[string]string{
    		"x":                      "x1val",
    		"xx":                     "x2val",
    		"foo":                    "fooval",
    		"xxxx":                   "x4val",
    		"xxxxx":                  "x5val",
    		"xxxxxx":                 "x6val",
    		strings.Repeat("x", 128): "longval",
    	})
    }
    
    func testMapLookups(t *testing.T, m map[string]string) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 33.5K bytes
    - Viewed (0)
  2. src/fmt/scan_test.go

    	{"%d%%", "42%", &intVal, 42}, // %% at end of string.
    
    	// Corner cases
    	{"%x", "FFFFFFFF\n", &uint32Val, uint32(0xFFFFFFFF)},
    
    	// Custom scanner.
    	{"%s", "  sss ", &xVal, Xs("sss")},
    	{"%2s", "sssss", &xVal, Xs("ss")},
    
    	// Fixed bugs
    	{"%d\n", "27\n", &intVal, 27},         // ok
    	{"%d\n", "28 \n", &intVal, 28},        // was: "unexpected newline"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 23 20:25:13 UTC 2023
    - 39.3K bytes
    - Viewed (0)
Back to top