Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 385 for S1 (0.02 sec)

  1. src/slices/slices_test.go

    			t.Errorf("Equal(%v, %v, equalNaN[float64]) = %t, want %t", test.s1, test.s2, got, test.wantEqualNaN)
    		}
    	}
    
    	s1 := []int{1, 2, 3}
    	s2 := []int{2, 3, 4}
    	if EqualFunc(s1, s1, offByOne) {
    		t.Errorf("EqualFunc(%v, %v, offByOne) = true, want false", s1, s1)
    	}
    	if !EqualFunc(s1, s2, offByOne) {
    		t.Errorf("EqualFunc(%v, %v, offByOne) = false, want true", s1, s2)
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 13:32:06 UTC 2024
    - 33.2K bytes
    - Viewed (0)
  2. platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/artifacts/ivyservice/ivyresolve/strategy/AbstractStringVersionSelectorTest.groovy

        def accept(String s1, String s2) {
            return getSelector(s1).accept(s2)
        }
    
        def accept(String s1, ComponentMetadata cmd) {
            return getSelector(s1).accept(cmd)
        }
    
        def isDynamic(String s1) {
            return getSelector(s1).isDynamic()
        }
    
        def requiresMetadata(String s1) {
            return getSelector(s1).requiresMetadata()
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 1.2K bytes
    - Viewed (0)
  3. src/cmd/cgo/internal/testgodefs/testdata/fieldtypedef.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    //go:build ignore
    
    package main
    
    /*
    struct S1 { int f1; };
    struct S2 { struct S1 s1; };
    typedef struct S1 S1Type;
    typedef struct S2 S2Type;
    */
    import "C"
    
    type S1 C.S1Type
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Dec 15 21:57:36 UTC 2023
    - 349 bytes
    - Viewed (0)
  4. src/debug/gosym/symtab_test.go

    	}
    }
    
    func TestStandardLibPackage(t *testing.T) {
    	s1 := Sym{Name: "io.(*LimitedReader).Read"}
    	s2 := Sym{Name: "io.NewSectionReader"}
    	assertString(t, fmt.Sprintf("package of %q", s1.Name), s1.PackageName(), "io")
    	assertString(t, fmt.Sprintf("package of %q", s2.Name), s2.PackageName(), "io")
    	assertString(t, fmt.Sprintf("receiver of %q", s1.Name), s1.ReceiverName(), "(*LimitedReader)")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 09 11:28:56 UTC 2022
    - 4.3K bytes
    - Viewed (0)
  5. platforms/core-runtime/files/src/test/groovy/org/gradle/internal/file/FileHierarchySetTest.groovy

            def single = from(dir1)
    
            expect:
            def s1 = single.plus(dir2)
            s1.contains(dir1)
            s1.contains(child)
            s1.contains(dir2)
            !s1.contains(dir3)
            !s1.contains(tooFew)
            !s1.contains(tooMany)
            !s1.contains(parent)
            flatten(s1) == [parent.path, "1:dir1", "1:dir2"]
    
            def s2 = single.plus(dir1)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 13:09:38 UTC 2024
    - 12.6K bytes
    - Viewed (0)
  6. src/go/doc/doc_test.go

    	}
    }
    
    const funcsTestFile = `
    package funcs
    
    func F() {}
    
    type S1 struct {
    	S2  // embedded, exported
    	s3  // embedded, unexported
    }
    
    func NewS1()  S1 {return S1{} }
    func NewS1p() *S1 { return &S1{} }
    
    func (S1) M1() {}
    func (r S1) M2() {}
    func(S1) m3() {}		// unexported not shown
    func (*S1) P1() {}		// pointer receiver
    
    type S2 int
    func (S2) M3() {}		// shown on S2
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 11 16:31:52 UTC 2022
    - 6.7K bytes
    - Viewed (0)
  7. src/runtime/race/testdata/comp_test.go

    )
    
    type P struct {
    	x, y int
    }
    
    type S struct {
    	s1, s2 P
    }
    
    func TestNoRaceComp(t *testing.T) {
    	c := make(chan bool, 1)
    	var s S
    	go func() {
    		s.s2.x = 1
    		c <- true
    	}()
    	s.s2.y = 2
    	<-c
    }
    
    func TestNoRaceComp2(t *testing.T) {
    	c := make(chan bool, 1)
    	var s S
    	go func() {
    		s.s1.x = 1
    		c <- true
    	}()
    	s.s1.y = 2
    	<-c
    }
    
    func TestRaceComp(t *testing.T) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 08 04:08:51 UTC 2014
    - 2.3K bytes
    - Viewed (0)
  8. test/typeparam/sliceimp.dir/main.go

    }
    
    func TestEqual() {
    	s1 := []int{1, 2, 3}
    	if !a.Equal(s1, s1) {
    		panic(fmt.Sprintf("a.Equal(%v, %v) = false, want true", s1, s1))
    	}
    	s2 := []int{1, 2, 3}
    	if !a.Equal(s1, s2) {
    		panic(fmt.Sprintf("a.Equal(%v, %v) = false, want true", s1, s2))
    	}
    	s2 = append(s2, 4)
    	if a.Equal(s1, s2) {
    		panic(fmt.Sprintf("a.Equal(%v, %v) = true, want false", s1, s2))
    	}
    
    	s3 := []float64{1, 2, math.NaN()}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 24 02:14:15 UTC 2022
    - 4.6K bytes
    - Viewed (0)
  9. pkg/util/sets/set_test.go

    		{New(elements2...), New(elements...)},
    	} {
    		s1, s2 := sets[0], sets[1]
    		if got := s1.Union(s2); !got.Equals(want) {
    			t.Errorf("expected %v; got %v", want, got)
    		}
    	}
    }
    
    func TestDifference(t *testing.T) {
    	s1 := New("a", "b", "c", "d")
    	s2 := New("a", "b", "e")
    	want := New("c", "d")
    
    	t.Run("difference", func(t *testing.T) {
    		d := s1.Difference(s2)
    		if !want.Equals(d) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sat Mar 30 05:26:03 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  10. src/unicode/utf8/utf8.go

    	xx, xx, xx, xx, xx, xx, xx, xx, xx, xx, xx, xx, xx, xx, xx, xx, // 0xA0-0xAF
    	xx, xx, xx, xx, xx, xx, xx, xx, xx, xx, xx, xx, xx, xx, xx, xx, // 0xB0-0xBF
    	xx, xx, s1, s1, s1, s1, s1, s1, s1, s1, s1, s1, s1, s1, s1, s1, // 0xC0-0xCF
    	s1, s1, s1, s1, s1, s1, s1, s1, s1, s1, s1, s1, s1, s1, s1, s1, // 0xD0-0xDF
    	s2, s3, s3, s3, s3, s3, s3, s3, s3, s3, s3, s3, s3, s4, s3, s3, // 0xE0-0xEF
    	s5, s6, s6, s6, s7, xx, xx, xx, xx, xx, xx, xx, xx, xx, xx, xx, // 0xF0-0xFF
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 08 02:00:36 UTC 2024
    - 16.4K bytes
    - Viewed (0)
Back to top