Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 412 for wantReg (0.11 sec)

  1. test/fixedbugs/issue15175.go

    		fmt.Printf("uint8(253)>>0 = %v, wanted 253\n", got)
    		failed = true
    	}
    	if got := f1(0, 2, 1, 0, 0, 1, true); got != 255 {
    		fmt.Printf("f1(...) = %v, wanted 255\n", got)
    		failed = true
    	}
    	if got := f2(1); got != 242 {
    		fmt.Printf("f2(...) = %v, wanted 242\n", got)
    		failed = true
    	}
    	if got := f3(false, 0, 0); got != 254 {
    		fmt.Printf("f3(...) = %v, wanted 254\n", got)
    		failed = true
    	}
    	if failed {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 1.8K bytes
    - Viewed (0)
  2. src/iter/pull_test.go

    				}
    				wantNG(1)
    			}
    			wantNG(1)
    			if end < 3 {
    				stop()
    				wantNG(0)
    			}
    			for range 2 {
    				v, ok := next()
    				if v != 0 || ok != false {
    					t.Fatalf("next() = %d, %v, want %d, %v", v, ok, 0, false)
    				}
    				wantNG(0)
    			}
    			wantNG(0)
    
    			stop()
    			stop()
    			stop()
    			wantNG(0)
    		})
    	}
    }
    
    func TestPull2(t *testing.T) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 19:09:28 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  3. pkg/version/version_linux_test.go

    package version
    
    import (
    	"testing"
    
    	"istio.io/istio/pkg/monitoring/monitortest"
    )
    
    func TestRecordComponentBuildTag(t *testing.T) {
    	cases := []struct {
    		name    string
    		in      BuildInfo
    		wantTag string
    	}{
    		{
    			"record",
    			BuildInfo{
    				Version:       "VER",
    				GitRevision:   "GITREV",
    				GolangVersion: "GOLANGVER",
    				BuildStatus:   "STATUS",
    				GitTag:        "1.0.5-test",
    			},
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jun 07 23:36:03 UTC 2023
    - 1.2K bytes
    - Viewed (0)
  4. src/cmd/internal/src/xpos_test.go

    	if len(tab.baseList) != 1+len(tab.indexMap) { // indexMap omits nil
    		t.Errorf("table length discrepancy: %d != 1+%d", len(tab.baseList), len(tab.indexMap))
    	}
    
    	const wantLen = 4
    	if len(tab.baseList) != wantLen {
    		t.Errorf("got table length %d; want %d", len(tab.baseList), wantLen)
    	}
    
    	if got := tab.XPos(NoPos); got != NoXPos {
    		t.Errorf("XPos(NoPos): got %v; want %v", got, NoXPos)
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 01 15:52:41 UTC 2023
    - 2.7K bytes
    - Viewed (0)
  5. src/runtime/defer_test.go

    	defer func() {
    		if globint1 != 1 {
    			t.Fatalf("globint1:  wanted: 1, got %v", globint1)
    		}
    		if save1 != 5 {
    			t.Fatalf("save1:  wanted: 5, got %v", save1)
    		}
    		if globint2 != 1 {
    			t.Fatalf("globint2:  wanted: 1, got %v", globint2)
    		}
    		if save2 != 2 {
    			t.Fatalf("save2:  wanted: 2, got %v", save2)
    		}
    		if save3 != 4 {
    			t.Fatalf("save3:  wanted: 4, got %v", save3)
    		}
    		if globint3 != 1 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 20 18:57:24 UTC 2023
    - 11.4K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/test/float_test.go

    	}
    	if got := cvt7(3.5); got != 3 {
    		t.Errorf("cvt7 got %d, wanted 3", got)
    	}
    	if got := cvt8(3.5); got != 3 {
    		t.Errorf("cvt8 got %d, wanted 3", got)
    	}
    	if got := cvt9(3.5); got != 3 {
    		t.Errorf("cvt9 got %d, wanted 3", got)
    	}
    	if got := cvt10(3.5); got != 3 {
    		t.Errorf("cvt10 got %d, wanted 3", got)
    	}
    	if got := cvt11(3.5); got != 3 {
    		t.Errorf("cvt11 got %d, wanted 3", got)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 05 17:54:15 UTC 2022
    - 12.5K bytes
    - Viewed (0)
  7. test/fixedbugs/issue41872.go

    //go:noinline
    func f8(x int32) bool {
    	return byte(x&0xc0) == 64
    }
    
    //go:noinline
    func f16(x int32) bool {
    	return uint16(x&0x8040) == 64
    }
    
    func main() {
    	if !f8(64) {
    		panic("wanted true, got false")
    	}
    	if !f16(64) {
    		panic("wanted true, got false")
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 08 20:35:54 UTC 2020
    - 443 bytes
    - Viewed (0)
  8. test/typeparam/combine.go

    	if got, ok := gc(); ok {
    		panic(fmt.Sprintf("got %v, %v, wanted -/false", got, ok))
    	}
    	gc2 := Combine2(g1, g2)
    	if got, ok := gc2(); ok {
    		panic(fmt.Sprintf("got %v, %v, wanted -/false", got, ok))
    	}
    
    	gc3 := Combine(g1, g3, _NewPair[int, string])
    	if got, ok := gc3(); !ok || got.A != 3 || got.B != "y" {
    		panic(fmt.Sprintf("got %v, %v, wanted {3, y}, true", got, ok))
    	}
    	gc4 := Combine2(g1, g3)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 01 19:45:34 UTC 2022
    - 1.5K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/test/testdata/arithBoundary_test.go

    			t.Errorf("add_uint64 %d+%d = %d, wanted %d\n", v.a, v.b, got, v.add)
    		}
    		if got := sub_uint64_ssa(v.a, v.b); got != v.sub {
    			t.Errorf("sub_uint64 %d-%d = %d, wanted %d\n", v.a, v.b, got, v.sub)
    		}
    		if v.b != 0 {
    			if got := div_uint64_ssa(v.a, v.b); got != v.div {
    				t.Errorf("div_uint64 %d/%d = %d, wanted %d\n", v.a, v.b, got, v.div)
    			}
    
    		}
    		if v.b != 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Dec 23 06:40:04 UTC 2020
    - 31.3K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/test/testdata/string_test.go

    	}
    
    	str := "BelowExactAbove"
    	for i, test := range tests {
    		if got := testInt64Index_ssa(str, test.i); got != test.b {
    			t.Errorf("#%d got %d wanted %d", i, got, test.b)
    		}
    		if got := testInt64Slice_ssa(str, test.i, test.j); got != test.s {
    			t.Errorf("#%d got %s wanted %s", i, got, test.s)
    		}
    	}
    }
    
    func testInt64IndexPanic(t *testing.T) {
    	defer func() {
    		if r := recover(); r != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Dec 23 06:40:04 UTC 2020
    - 4.5K bytes
    - Viewed (0)
Back to top