Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 78 for str2 (0.12 sec)

  1. src/encoding/json/encode_test.go

    	Bo bool `json:"bo,omitempty"`
    
    	Ur uint `json:"ur"`
    	Uo uint `json:"uo,omitempty"`
    
    	Str struct{} `json:"str"`
    	Sto struct{} `json:"sto,omitempty"`
    }
    
    func TestOmitEmpty(t *testing.T) {
    	var want = `{
     "sr": "",
     "omitempty": 0,
     "slr": null,
     "mr": {},
     "fr": 0,
     "br": false,
     "ur": 0,
     "str": {},
     "sto": {}
    }`
    	var o Optionals
    	o.Sw = "something"
    	o.Mr = map[string]any{}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 29.4K bytes
    - Viewed (0)
  2. src/reflect/all_test.go

    	c *string
    	d map[float64]float64
    }
    
    func TestDeepEqualComplexStruct(t *testing.T) {
    	m := make(map[float64]float64)
    	stra, strb := "hello", "hello"
    	a, b := new(_Complex), new(_Complex)
    	*a = _Complex{5, [3]*_Complex{a, b, a}, &stra, m}
    	*b = _Complex{5, [3]*_Complex{b, a, a}, &strb, m}
    	if !DeepEqual(a, b) {
    		t.Error("DeepEqual(complex same) = false, want true")
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 218.8K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/ssa/rewrite386.go

    	// cond: sym == sym2 && off == off2 && isSamePtr(ptr, ptr2)
    	// result: (MOVBLSX x)
    	for {
    		off := auxIntToInt32(v.AuxInt)
    		sym := auxToSym(v.Aux)
    		ptr := v_0
    		if v_1.Op != Op386MOVBstore {
    			break
    		}
    		off2 := auxIntToInt32(v_1.AuxInt)
    		sym2 := auxToSym(v_1.Aux)
    		x := v_1.Args[1]
    		ptr2 := v_1.Args[0]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 21 21:05:46 UTC 2023
    - 262.4K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tf2xla/tests/legalize-tf-with-tf2xla-hlo-importer.mlir

        // CHECK: %[[red1:.*]] = mhlo.reduce(%[[cmul]] init: %[[convert_init]]) applies mhlo.add across dimensions = [0, 1, 2] : (tensor<8x8x8x8xf32>, tensor<f32>) -> tensor<8xf32>
        // CHECK: %[[scr2:.*]] = mhlo.convert %[[red1]] : tensor<8xf32>
    
        // CHECK: %[[mul2:.*]] = mhlo.multiply %arg2, %[[scr1]] : tensor<8xf32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Apr 06 15:32:52 UTC 2024
    - 38.6K bytes
    - Viewed (1)
  5. src/cmd/internal/objabi/reloctype.go

    	// adrp followed by a LD16 or ST16 instruction.
    	R_ARM64_PCREL_LDST16
    
    	// R_ARM64_PCREL_LDST32 resolves a PC-relative addresses instruction sequence, usually an
    	// adrp followed by a LD32 or ST32 instruction.
    	R_ARM64_PCREL_LDST32
    
    	// R_ARM64_PCREL_LDST64 resolves a PC-relative addresses instruction sequence, usually an
    	// adrp followed by a LD64 or ST64 instruction.
    	R_ARM64_PCREL_LDST64
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 27 17:26:07 UTC 2024
    - 17.3K bytes
    - Viewed (0)
  6. src/database/sql/sql_test.go

    		t.Fatal("exec insert", err)
    	}
    	var (
    		str1 string
    		dec1 decimalInt
    		arr1 []int64
    	)
    	err = db.QueryRowContext(ctx, "SELECT|keys|dec1,str1,array1|").Scan(&dec1, &str1, &arr1)
    	if err != nil {
    		t.Fatal("select", err)
    	}
    
    	list := []struct{ got, want any }{
    		{o1, "from-server"},
    		{dec1, decimalInt{123}},
    		{str1, "hello"},
    		{arr1, []int64{42, 128, 707}},
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 111.6K bytes
    - Viewed (0)
  7. src/cmd/vendor/github.com/ianlancetaylor/demangle/ast.go

    }
    
    func (sb *StructuredBindings) goString(indent int, field string) string {
    	var strb strings.Builder
    	fmt.Fprintf(&strb, "%*s%sStructuredBinding:", indent, "", field)
    	for _, b := range sb.Bindings {
    		strb.WriteByte('\n')
    		strb.WriteString(b.goString(indent+2, ""))
    	}
    	return strb.String()
    }
    
    // UnnamedType is an unnamed type, that just has an index.
    type UnnamedType struct {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 19:48:28 UTC 2024
    - 105.8K bytes
    - Viewed (0)
  8. src/cmd/cgo/internal/testerrors/ptr_test.go

    		name:    "stringdata",
    		c:       `void f41(void* p) {}`,
    		imports: []string{"unsafe"},
    		body:    `s := struct { a [4]byte; p *int }{p: new(int)}; str := unsafe.String(&s.a[0], 4); C.f41(unsafe.Pointer(unsafe.StringData(str)))`,
    		fail:    false,
    	},
    	{
    		name:    "slicedata",
    		c:       `void f42(void* p) {}`,
    		imports: []string{"unsafe"},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 03 16:07:49 UTC 2023
    - 21.2K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/validation_test.go

    			obj: map[string]interface{}{
    				"str": "this is a 123 string 456",
    			},
    			schema: objectTypePtr(map[string]schema.Structural{
    				"str": stringType,
    			}),
    			valid: []string{
    				"self.str.find('[0-9]+') == '123'",
    				"self.str.find('[0-9]+') != '456'",
    				"self.str.find('xyz') == ''",
    
    				"self.str.findAll('[0-9]+') == ['123', '456']",
    				"self.str.findAll('[0-9]+', 0) == []",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 17:14:10 UTC 2024
    - 159.9K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tf2xla/tests/legalize-tf.mlir

      // CHECK-NEXT: %[[red1:.*]] = mhlo.reduce(%[[cmul]] init: %[[init]]) applies mhlo.add across dimensions = [0, 1, 2] : (tensor<8x8x8x8xf32>, tensor<f32>) -> tensor<8xf32>
      // CHECK-NEXT: %[[scr2:.*]] = mhlo.convert %[[red1]] : tensor<8xf32>
    
      // CHECK-NEXT: %[[mul2:.*]] = mhlo.multiply %arg2, %[[scr1]] : tensor<8xf32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon May 06 18:46:23 UTC 2024
    - 335.5K bytes
    - Viewed (0)
Back to top