Search Options

Results per page
Sort
Preferred Languages
Advance

Results 121 - 130 of 6,074 for case1 (0.04 sec)

  1. src/internal/reflectlite/all_test.go

    		switch v.Kind() {
    		case abi.Int:
    			v.Set(ValueOf(int(132)))
    		case abi.Int8:
    			v.Set(ValueOf(int8(8)))
    		case abi.Int16:
    			v.Set(ValueOf(int16(16)))
    		case abi.Int32:
    			v.Set(ValueOf(int32(32)))
    		case abi.Int64:
    			v.Set(ValueOf(int64(64)))
    		case abi.Uint:
    			v.Set(ValueOf(uint(132)))
    		case abi.Uint8:
    			v.Set(ValueOf(uint8(8)))
    		case abi.Uint16:
    			v.Set(ValueOf(uint16(16)))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 16 19:26:08 UTC 2023
    - 24.2K bytes
    - Viewed (0)
  2. src/cmd/vendor/golang.org/x/text/internal/tag/tag.go

    func cmp(a Index, b []byte) int {
    	n := len(a)
    	if len(b) < n {
    		n = len(b)
    	}
    	for i, c := range b[:n] {
    		switch {
    		case a[i] > c:
    			return 1
    		case a[i] < c:
    			return -1
    		}
    	}
    	switch {
    	case len(a) < len(b):
    		return -1
    	case len(a) > len(b):
    		return 1
    	}
    	return 0
    }
    
    // Compare returns an integer comparing a and b lexicographically.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  3. src/runtime/float_test.go

    		0x8234508000000001, // from issue48807
    		1<<56 + 1<<32 + 1,
    	} {
    		got := float32(i)
    		dontwant := float32(float64(i))
    		if got == dontwant {
    			// The test cases above should be uint64s such that
    			// this equality doesn't hold. These examples trigger
    			// the case where using an intermediate float64 doesn't work.
    			t.Errorf("direct float32 conversion doesn't work: arg=%x got=%x dontwant=%x", i, got, dontwant)
    		}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 07 18:34:24 UTC 2021
    - 699 bytes
    - Viewed (0)
  4. src/math/tan.go

    		PI4B = 3.77489470793079817668e-8  // 0x3e64442d00000000,
    		PI4C = 2.69515142907905952645e-15 // 0x3ce8469898cc5170,
    	)
    	// special cases
    	switch {
    	case x == 0 || IsNaN(x):
    		return x // return ±0 || NaN()
    	case IsInf(x, 0):
    		return NaN()
    	}
    
    	// make argument positive but save the sign
    	sign := false
    	if x < 0 {
    		x = -x
    		sign = true
    	}
    	var j uint64
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun May 08 17:27:54 UTC 2022
    - 3.7K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/syntax/positions.go

    		// case *MapType:
    		// case *ChanType:
    
    		// statements
    		// case *EmptyStmt:
    		// case *LabeledStmt:
    		// case *BlockStmt:
    		// case *ExprStmt:
    		case *SendStmt:
    			m = n.Chan
    		// case *DeclStmt:
    		case *AssignStmt:
    			m = n.Lhs
    		// case *BranchStmt:
    		// case *CallStmt:
    		// case *ReturnStmt:
    		// case *IfStmt:
    		// case *ForStmt:
    		// case *SwitchStmt:
    		// case *SelectStmt:
    
    		// helper nodes
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 17:49:19 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  6. cmd/erasure-metadata-utils_test.go

    func TestReduceErrs(t *testing.T) {
    	canceledErrs := make([]error, 0, 5)
    	for i := 0; i < 5; i++ {
    		canceledErrs = append(canceledErrs, fmt.Errorf("error %d: %w", i, context.Canceled))
    	}
    	// List all of all test cases to validate various cases of reduce errors.
    	testCases := []struct {
    		errs        []error
    		ignoredErrs []error
    		err         error
    	}{
    		// Validate if have reduced properly.
    		{[]error{
    			errDiskNotFound,
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jan 18 07:03:17 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/types2/under.go

    // If x and y are identical channels but for their direction
    // and one of them is unrestricted, match returns the channel
    // with the restricted direction.
    // In all other cases, match returns nil.
    func match(x, y Type) Type {
    	// Common case: we don't have channels.
    	if Identical(x, y) {
    		return x
    	}
    
    	// We may have channels that differ in direction only.
    	if x, _ := x.(*Chan); x != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 22:34:27 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  8. src/go/doc/comment/markdown.go

    	for _, t := range x {
    		switch t := t.(type) {
    		case Plain:
    			p.escape(out, string(t))
    		case Italic:
    			out.WriteString("*")
    			p.escape(out, string(t))
    			out.WriteString("*")
    		case *Link:
    			out.WriteString("[")
    			p.rawText(out, t.Text)
    			out.WriteString("](")
    			out.WriteString(t.URL)
    			out.WriteString(")")
    		case *DocLink:
    			url := p.docLinkURL(t)
    			if url != "" {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 11 16:31:48 UTC 2022
    - 4.4K bytes
    - Viewed (0)
  9. src/internal/types/testdata/fixedbugs/issue41124.go

    	_ chan I3 // ERROR "interface contains type constraints"
    	_ func(I1 /* ERRORx `interface is .* comparable` */ )
    	_ func() I2 // ERROR "interface contains type constraints"
    )
    
    // Other cases.
    
    var _ = [...]I3 /* ERROR "interface contains type constraints" */ {}
    
    func _(x interface{}) {
    	_ = x.(I3 /* ERROR "interface contains type constraints" */ )
    }
    
    type T1[_ any] struct{}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 17 19:54:27 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  10. src/crypto/ed25519/ed25519vectors_test.go

    // encodings. These vectors lock in unspecified and spec-divergent behaviors in
    // edge cases that are not security relevant in most contexts, but that can
    // cause issues in consensus applications if changed.
    //
    // Our behavior matches the "classic" unwritten verification rules of the
    // "ref10" reference implementation.
    //
    // Note that although we test for these edge cases, they are not covered by the
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 25 14:52:51 UTC 2022
    - 3.7K bytes
    - Viewed (0)
Back to top