Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 57 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/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)
  3. 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)
  4. pkg/kubelet/util/manager/cache_based_manager_test.go

    	assert.Equal(t, 1, refs("ns1", "s1"))
    	manager.RegisterPod(podWithSecrets("ns1", "name2", s1))
    	assert.Equal(t, 2, refs("ns1", "s1"))
    
    	manager.UnregisterPod(podWithSecrets("ns1", "name1", s1))
    	assert.Equal(t, 1, refs("ns1", "s1"))
    	manager.UnregisterPod(podWithSecrets("ns1", "name1", s1))
    	assert.Equal(t, 1, refs("ns1", "s1"))
    	manager.UnregisterPod(podWithSecrets("ns1", "name2", s1))
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 19.6K bytes
    - Viewed (0)
  5. src/net/http/pattern.go

    			if s2.s == "/" {
    				if s1.s != "" {
    					b.WriteString(s1.s)
    				} else {
    					b.WriteString("x")
    				}
    			}
    			return b.String()
    		}
    		if !s1.multi && s2.multi {
    			writeSegment(&b, s1)
    		} else if s1.wild && s2.wild {
    			// Both patterns will match whatever we put here; use
    			// the first wildcard name.
    			writeSegment(&b, s1)
    		} else if s1.wild && !s2.wild {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 16:36:30 UTC 2024
    - 15.3K bytes
    - Viewed (0)
  6. src/slices/slices.go

    // returns 0 the result is 0 if len(s1) == len(s2), -1 if len(s1) < len(s2),
    // and +1 if len(s1) > len(s2).
    func CompareFunc[S1 ~[]E1, S2 ~[]E2, E1, E2 any](s1 S1, s2 S2, cmp func(E1, E2) int) int {
    	for i, v1 := range s1 {
    		if i >= len(s2) {
    			return +1
    		}
    		v2 := s2[i]
    		if c := cmp(v1, v2); c != 0 {
    			return c
    		}
    	}
    	if len(s1) < len(s2) {
    		return -1
    	}
    	return 0
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 29 14:01:59 UTC 2024
    - 13.6K bytes
    - Viewed (0)
  7. src/crypto/sha256/sha256block_amd64.s

    	;                                     \
    	XORL     y1, y0;                      \ // y0 = (e>>25) ^ (e>>11)					// S1
    	XORL     g, y2;                       \ // y2 = f^g	// CH
    	VPADDD   XDWORD0, XTMP0, XTMP0;       \ // XTMP0 = W[-7] + W[-16]	// y1 = (e >> 6)	// S1
    	RORXL    $6, e, y1;                   \ // y1 = (e >> 6)						// S1
    	;                                     \
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:29:44 UTC 2024
    - 47.3K bytes
    - Viewed (0)
  8. src/runtime/runtime_test.go

    	v := *(*byte)(unsafe.Pointer(addr))
    	t.Logf("addr %#x: %#x\n", addr, v)
    }
    
    func eqstring_generic(s1, s2 string) bool {
    	if len(s1) != len(s2) {
    		return false
    	}
    	// optimization in assembly versions:
    	// if s1.str == s2.str { return true }
    	for i := 0; i < len(s1); i++ {
    		if s1[i] != s2[i] {
    			return false
    		}
    	}
    	return true
    }
    
    func TestEqString(t *testing.T) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 11.7K bytes
    - Viewed (0)
  9. src/math/rand/rand_test.go

    // disagree, or <0 if the lengths are the same and all elements
    // are identical.
    func compareUint32Slices(s1, s2 []uint32) int {
    	if len(s1) != len(s2) {
    		if len(s1) > len(s2) {
    			return len(s2) + 1
    		}
    		return len(s1) + 1
    	}
    	for i := range s1 {
    		if s1[i] != s2[i] {
    			return i
    		}
    	}
    	return -1
    }
    
    // compareFloat32Slices returns the first index where the two slices
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 16.9K bytes
    - Viewed (0)
  10. pkg/slices/slices_test.go

    			},
    			want: []*string{},
    		},
    		{
    			name: "slice with 1 element",
    			args: args[string]{
    				[]string{s1},
    			},
    			want: []*string{&s1},
    		},
    		{
    			name: "slice with many elements",
    			args: args[string]{
    				[]string{s1, s2, s3},
    			},
    			want: []*string{&s1, &s2, &s3},
    		},
    	}
    	intTests := []testCase[int]{
    		{
    			name: "empty slice",
    			args: args[int]{
    				[]int{},
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 10 23:33:56 UTC 2024
    - 18.2K bytes
    - Viewed (0)
Back to top