Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 373 for wantRm (0.14 sec)

  1. src/time/zoneinfo_test.go

    		t.Fatal(err)
    	}
    
    	d := time.Date(1900, time.January, 1, 0, 0, 0, 0, loc)
    	tzName, tzOffset := d.Zone()
    	if want := "EST"; tzName != want {
    		t.Errorf("Zone name == %s, want %s", tzName, want)
    	}
    	if want := -18000; tzOffset != want {
    		t.Errorf("Zone offset == %d, want %d", tzOffset, want)
    	}
    }
    
    func TestMalformedTZData(t *testing.T) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 13 17:06:56 UTC 2023
    - 9.9K bytes
    - Viewed (0)
  2. internal/s3select/sql/value_test.go

    			},
    			want:   0,
    			wantOK: false,
    		},
    	}
    	for _, tt := range tests {
    		t.Run(tt.name, func(t *testing.T) {
    			v := &Value{
    				value: tt.fields.value,
    			}
    			got, got1 := v.bytesToInt()
    			if got != tt.want {
    				t.Errorf("bytesToInt() got = %v, want %v", got, tt.want)
    			}
    			if got1 != tt.wantOK {
    				t.Errorf("bytesToInt() got1 = %v, want %v", got1, tt.wantOK)
    			}
    		})
    	}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Mar 06 16:56:10 UTC 2023
    - 12.5K bytes
    - Viewed (0)
  3. src/cmd/covdata/tool_test.go

    	}
    	lines = strings.Split(string(payload), "\n")
    	want0 := "mode: set"
    	if lines[0] != want0 {
    		dumplines(lines[0:10])
    		t.Errorf("textfmt: want %s got %s", want0, lines[0])
    	}
    	want1 := mainPkgPath + "/prog1.go:13.14,15.2 1 1"
    	if lines[1] != want1 {
    		dumplines(lines[0:10])
    		t.Errorf("textfmt: want %s got %s", want1, lines[1])
    	}
    }
    
    func dumplines(lines []string) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 07 20:46:32 UTC 2024
    - 24.5K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/cel/value_test.go

    		if contained != types.True {
    			t.Errorf("got %v, wanted list contains elem[%v] %v == true", contained, i, e)
    		}
    	}
    	if lv.Contains(types.String("fourth")) != types.False {
    		t.Errorf("got %v, wanted false 'fourth'", lv.Contains(types.String("fourth")))
    	}
    	if !types.IsError(lv.Contains(types.Int(-1))) {
    		t.Errorf("got %v, wanted error for invalid type", lv.Contains(types.Int(-1)))
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 10 22:05:55 UTC 2022
    - 10.4K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apimachinery/pkg/version/helpers_test.go

    			}
    			if gotVType != tt.wantVType {
    				t.Errorf("parseKubeVersion() gotVType = %v, want %v", gotVType, tt.wantVType)
    			}
    			if gotMinorVersion != tt.wantMinorVersion {
    				t.Errorf("parseKubeVersion() gotMinorVersion = %v, want %v", gotMinorVersion, tt.wantMinorVersion)
    			}
    			if gotOk != tt.wantOk {
    				t.Errorf("parseKubeVersion() gotOk = %v, want %v", gotOk, tt.wantOk)
    			}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Nov 19 02:46:55 UTC 2022
    - 3.3K bytes
    - Viewed (0)
  6. test/typeparam/issue49027.dir/main.go

    	if x != s {
    		panic(fmt.Sprintf("got %s wanted %s", x, s))
    	}
    	y, ok := a.Conv2(s)
    	if !ok {
    		panic("conversion failed")
    	}
    	if y != s {
    		panic(fmt.Sprintf("got %s wanted %s", y, s))
    	}
    	z := a.Conv3(s)
    	if z != s {
    		panic(fmt.Sprintf("got %s wanted %s", z, s))
    	}
    	w := a.Conv4(a.Mystring(s))
    	if w != a.Mystring(s) {
    		panic(fmt.Sprintf("got %s wanted %s", w, s))
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 24 02:14:15 UTC 2022
    - 617 bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/model/types_test.go

    		t.Fatal("got field not found for 'CustomObject.nested', wanted found")
    	}
    	if nestedFieldType.Type.GetMessageType() != "CustomObject.nested" {
    		t.Errorf("got field type %v, wanted mock_template.nested", nestedFieldType.Type)
    	}
    	subnameFieldType, found := rt.FindFieldType("CustomObject.nested", "subname")
    	if !found {
    		t.Fatal("got field not found for 'CustomObject.nested.subname', wanted found")
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 08 15:52:31 UTC 2023
    - 3.8K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/test/iface_test.go

    	a += 2
    	if got := i.(int); got != 5 {
    		t.Errorf("wanted 5, got %d\n", got)
    	}
    }
    
    func TestEfaceConv2(t *testing.T) {
    	a := 5
    	sink = &a
    	i := interface{}(a)
    	a += 2
    	if got := i.(int); got != 5 {
    		t.Errorf("wanted 5, got %d\n", got)
    	}
    }
    
    func TestEfaceConv3(t *testing.T) {
    	x = 5
    	if got := e2int3(x); got != 5 {
    		t.Errorf("wanted 5, got %d\n", got)
    	}
    }
    
    //go:noinline
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 06 17:02:53 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  9. pilot/pkg/xds/debug_test.go

    				}
    				if (ss.ClusterSent != "") != wantSent {
    					errorHandler("wanted ClusterSent set %v got %v for %v", wantSent, ss.ClusterSent, nodeID)
    				}
    				if (ss.ClusterAcked != "") != wantAcked {
    					errorHandler("wanted ClusterAcked set %v got %v for %v", wantAcked, ss.ClusterAcked, nodeID)
    				}
    				if (ss.ListenerSent != "") != wantSent {
    					errorHandler("wanted ListenerSent set %v got %v for %v", wantSent, ss.ListenerSent, nodeID)
    				}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jan 12 18:20:36 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  10. src/cmd/internal/obj/arm64/asm_arm64_test.go

    			v:      0xfe,
    			shift:  1,
    			wantHi: 0x0,
    			wantLo: 0x7f,
    		},
    		{
    			v:      0x10fe,
    			shift:  1,
    			wantHi: 0x0,
    			wantLo: 0x87f,
    		},
    		{
    			v:      0x2002,
    			shift:  1,
    			wantHi: 0x2000,
    			wantLo: 0x1,
    		},
    		{
    			v:      0xfffffe,
    			shift:  1,
    			wantHi: 0xffe000,
    			wantLo: 0xfff,
    		},
    		{
    			v:      0x1000ffe,
    			shift:  1,
    			wantHi: 0xfff000,
    			wantLo: 0xfff,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 22 02:46:11 UTC 2023
    - 7.8K bytes
    - Viewed (0)
Back to top