Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 30 for 01122334 (0.7 sec)

  1. src/runtime/string_test.go

    	}
    }
    
    func TestIntString(t *testing.T) {
    	// Non-escaping result of intstring.
    	s := ""
    	for i := rune(0); i < 4; i++ {
    		s += string(i+'0') + string(i+'0'+1)
    	}
    	if want := "01122334"; s != want {
    		t.Fatalf("want '%v', got '%v'", want, s)
    	}
    
    	// Escaping result of intstring.
    	var a [4]string
    	for i := rune(0); i < 4; i++ {
    		a[i] = string(i + '0')
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 13 14:05:23 UTC 2022
    - 13.3K bytes
    - Viewed (0)
  2. tensorflow/cc/gradients/math_grad_test.cc

    }
    
    TEST_F(CWiseUnaryGradTest, Sign) {
      auto x_fn = [this](const int i) { return RV({-1, 1, -2, 2, -3, 3}); };
      TestCWiseGrad<float, float>(SIGN, x_fn);
    }
    
    TEST_F(CWiseUnaryGradTest, Sin) {
      auto x_fn = [this](const int i) { return RV({0, -1, 1, -2, 2, -3, 3}); };
      TestCWiseGrad<float, float>(SIN, x_fn);
    }
    
    TEST_F(CWiseUnaryGradTest, Sin_Complex) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Aug 25 18:20:20 UTC 2023
    - 36K bytes
    - Viewed (0)
  3. src/cmd/gofmt/testdata/composites.golden

    	{3, 4},
    }
    
    var _ = [...]T{
    	{},
    	{1, 2},
    	{3, 4},
    }
    
    var _ = []T{
    	{},
    	{1, 2},
    	{3, 4},
    }
    
    var _ = []T{
    	{},
    	10: {1, 2},
    	20: {3, 4},
    }
    
    var _ = []struct {
    	x, y int
    }{
    	{},
    	10: {1, 2},
    	20: {3, 4},
    }
    
    var _ = []interface{}{
    	T{},
    	10: T{1, 2},
    	20: T{3, 4},
    }
    
    var _ = [][]int{
    	{},
    	{1, 2},
    	{3, 4},
    }
    
    var _ = [][]int{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 12 03:55:43 UTC 2016
    - 2.5K bytes
    - Viewed (0)
  4. test/fixedbugs/issue8139.go

    		return f1() // convince inliner not to inline
    	}
    	z := 0x11223344
    	_ = e.(T)
    	return z
    }
    
    func f2() int {
    	if b {
    		return f1() // convince inliner not to inline
    	}
    	z := 0x11223344
    	_ = i.(T)
    	return z
    }
    
    func main() {
    	x := f1()
    	y := f2()
    	if x != 0x11223344 || y != 0x11223344 {
    		fmt.Printf("BUG: x=%#x y=%#x, want 0x11223344 for both\n", x, y)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 800 bytes
    - Viewed (0)
  5. subprojects/core/src/test/groovy/org/gradle/util/VersionNumberTest.groovy

            VersionNumber.parse("11.22") == new VersionNumber(11, 22, 0, null)
            VersionNumber.parse("11.22.33") == new VersionNumber(11, 22, 33, null)
            VersionNumber.parse("11.22.33-eap") == new VersionNumber(11, 22, 33, "eap")
    
            VersionNumber.parse("11.fortyfour") == new VersionNumber(11, 0, 0, "fortyfour")
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 12 07:54:04 UTC 2021
    - 7.6K bytes
    - Viewed (0)
  6. src/runtime/internal/sys/intrinsics_test.go

    	x := uint64(0x1122334455667788)
    	y := sys.Bswap64(x)
    	if y != 0x8877665544332211 {
    		t.Errorf("Bswap(%x)=%x, want 0x8877665544332211", x, y)
    	}
    }
    func TestBswap32(t *testing.T) {
    	x := uint32(0x11223344)
    	y := sys.Bswap32(x)
    	if y != 0x44332211 {
    		t.Errorf("Bswap(%x)=%x, want 0x44332211", x, y)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 17 23:34:11 UTC 2023
    - 984 bytes
    - Viewed (0)
  7. src/html/template/jsctx_string.go

    	var x [1]struct{}
    	_ = x[jsCtxRegexp-0]
    	_ = x[jsCtxDivOp-1]
    	_ = x[jsCtxUnknown-2]
    }
    
    const _jsCtx_name = "jsCtxRegexpjsCtxDivOpjsCtxUnknown"
    
    var _jsCtx_index = [...]uint8{0, 11, 21, 33}
    
    func (i jsCtx) String() string {
    	if i >= jsCtx(len(_jsCtx_index)-1) {
    		return "jsCtx(" + strconv.FormatInt(int64(i), 10) + ")"
    	}
    	return _jsCtx_name[_jsCtx_index[i]:_jsCtx_index[i+1]]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 04 17:04:36 UTC 2023
    - 635 bytes
    - Viewed (0)
  8. test/fixedbugs/issue20029.go

    outer:
    	for i := 0; i < 10; i++ {
    		for k := range m {
    			if k == 5 {
    				continue outer
    			}
    		}
    		runtime.GC()
    		break
    	}
    	runtime.GC()
    }
    func main() {
    	m := map[int]int{1: 2, 2: 3, 3: 4}
    	f(m)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 20 23:47:43 UTC 2017
    - 583 bytes
    - Viewed (0)
  9. src/reflect/iter_test.go

    package reflect_test
    
    import (
    	"iter"
    	"maps"
    	. "reflect"
    	"testing"
    )
    
    func TestValueSeq(t *testing.T) {
    	m := map[string]int{
    		"1": 1,
    		"2": 2,
    		"3": 3,
    		"4": 4,
    	}
    	c := make(chan int, 3)
    	for i := range 3 {
    		c <- i
    	}
    	close(c)
    	tests := []struct {
    		name  string
    		val   Value
    		check func(*testing.T, iter.Seq[Value])
    	}{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 10 14:27:54 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  10. src/internal/types/testdata/examples/functions.go

    	Reverse[int](nil)
    	Reverse[string]([]string{"foo", "bar"})
    	Reverse[struct{x, y int}]([]struct{x, y int}{{1, 2}, {2, 3}, {3, 4}})
    
    	// Since the type parameter is used for an incoming argument,
    	// it can be inferred from the provided argument's type.
    	Reverse([]string{"foo", "bar"})
    	Reverse([]struct{x, y int}{{1, 2}, {2, 3}, {3, 4}})
    
    	// But the incoming argument must have a type, even if it's a
    	// default type. An untyped nil won't work.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 30 20:19:38 UTC 2023
    - 5.5K bytes
    - Viewed (0)
Back to top