Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 21 for b1 (0.03 sec)

  1. src/bytes/bytes_test.go

    		// different start alignments
    		b1 := b[i:]
    		for j := 0; j < len(b1); j++ {
    			b1[j] = 'x'
    			pos := IndexByte(b1, 'x')
    			if pos != j {
    				t.Errorf("IndexByte(%q, 'x') = %v", b1, pos)
    			}
    			b1[j] = 0
    			pos = IndexByte(b1, 'x')
    			if pos != -1 {
    				t.Errorf("IndexByte(%q, 'x') = %v", b1, pos)
    			}
    		}
    		// different end alignments
    		b1 = b[:i]
    		for j := 0; j < len(b1); j++ {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 12:58:37 UTC 2024
    - 56.5K bytes
    - Viewed (0)
  2. pkg/scheduler/framework/plugins/podtopologyspread/scoring_test.go

    				Obj(),
    			existingPods: []*v1.Pod{
    				st.MakePod().Name("p-a1").Node("node-a").Label("foo", "").Obj(),
    				st.MakePod().Name("p-a2").Node("node-a").Label("foo", "").Obj(),
    				st.MakePod().Name("p-b1").Node("node-b").Label("foo", "").Obj(),
    			},
    			nodes: []*v1.Node{
    				st.MakeNode().Name("node-a").Label(v1.LabelHostname, "node-a").Obj(),
    			},
    			failedNodes: []*v1.Node{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Dec 15 03:30:06 UTC 2023
    - 60K bytes
    - Viewed (0)
  3. src/time/time_test.go

    	{"MarshalBinary", func(t1, t2 Time) bool {
    		a1, b1 := t1.MarshalBinary()
    		a2, b2 := t2.MarshalBinary()
    		return bytes.Equal(a1, a2) && b1 == b2
    	}},
    	{"GobEncode", func(t1, t2 Time) bool {
    		a1, b1 := t1.GobEncode()
    		a2, b2 := t2.GobEncode()
    		return bytes.Equal(a1, a2) && b1 == b2
    	}},
    	{"MarshalJSON", func(t1, t2 Time) bool {
    		a1, b1 := t1.MarshalJSON()
    		a2, b2 := t2.MarshalJSON()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:13:47 UTC 2024
    - 56.5K bytes
    - Viewed (0)
  4. src/bufio/bufio_test.go

    	}
    
    	var w1 writeCountingDiscard
    	b1 := NewWriterSize(&w1, 1234)
    	b1.WriteString(strings.Repeat("x", 1200))
    	b1.Flush()
    	if w1 != 1 {
    		t.Fatalf("flush 1200 'x's: got %d writes, want 1", w1)
    	}
    	b1.WriteString(strings.Repeat("x", 89))
    	if w1 != 1 {
    		t.Fatalf("write 1200 + 89 'x's: got %d writes, want 1", w1)
    	}
    	io.Copy(b1, onlyReader{strings.NewReader(strings.Repeat("x", 700))})
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 10 18:56:01 UTC 2023
    - 51.5K bytes
    - Viewed (0)
  5. tensorflow/compiler/jit/deadness_analysis_test.cc

      Output b1 =
          ops::Add(root.WithOpName("b1"), sw_1.output_true, sw_0.output_false);
    
      Output live0 = ops::Add(root.WithOpName("live0"), a0, a1);
      Output live1 = ops::Add(root.WithOpName("live1"), b0, b1);
    
      Output halfdead0 = ops::Add(root.WithOpName("halfdead0"), a0, b0);
      Output halfdead1 = ops::Add(root.WithOpName("halfdead1"), a1, b1);
    
      std::unique_ptr<DeadnessAnalysis> result;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 22 06:59:07 UTC 2024
    - 51.6K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/celcoststability_test.go

    				"!self.listMap.exists_one(m, m.k.startsWith('a'))":   20,
    				"size(self.listMap.filter(m, m.k == 'a1')) == 1":     27,
    				"self.listMap.exists(m, m.k == 'a1' && m.v == 'b1')": 16,
    				"self.listMap.map(m, m.v).exists(v, v == 'b1')":      55,
    
    				// test comprehensions where the field used in predicates is unset on all but one of the elements:
    				// - with has checks:
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 28 19:20:16 UTC 2024
    - 80.2K bytes
    - Viewed (0)
  7. src/encoding/xml/marshal_test.go

    			`</top>`,
    	},
    	{
    		Value: &struct {
    			XMLName struct{} `xml:"top"`
    			B       string   `xml:"space x>b"`
    			B1      string   `xml:"space1 x>b"`
    		}{
    			B:  "b",
    			B1: "b1",
    		},
    		ExpectXML: `<top>` +
    			`<x><b xmlns="space">b</b>` +
    			`<b xmlns="space1">b1</b></x>` +
    			`</top>`,
    	},
    
    	// Test struct embedding
    	{
    		Value: &EmbedA{
    			EmbedC: EmbedC{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 08 18:46:41 UTC 2024
    - 66K bytes
    - Viewed (0)
  8. pkg/scheduler/framework/plugins/defaultpreemption/default_preemption_test.go

    				st.MakePod().Name("pod-a2").UID("pod-a2").Node("node-a").Label("foo", "").Priority(lowPriority).Obj(),
    				st.MakePod().Name("pod-b1").UID("pod-b1").Node("node-b").Label("foo", "").Priority(lowPriority).Obj(),
    				st.MakePod().Name("pod-x1").UID("pod-x1").Node("node-x").Label("foo", "").Priority(highPriority).Obj(),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 31 15:52:16 UTC 2024
    - 82.8K bytes
    - Viewed (0)
  9. okhttp/src/test/java/okhttp3/internal/cache/DiskLruCacheTest.kt

      @ParameterizedTest
      @ArgumentsSource(FileSystemParamProvider::class)
      fun iterator(parameters: Pair<FileSystem, Boolean>) {
        setUp(parameters.first, parameters.second)
        set("a", "a1", "a2")
        set("b", "b1", "b2")
        set("c", "c1", "c2")
        val iterator = cache.snapshots()
        assertThat(iterator.hasNext()).isTrue()
        iterator.next().use {
          assertThat(it.key()).isEqualTo("a")
          it.assertValue(0, "a1")
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Apr 15 14:55:09 UTC 2024
    - 75.8K bytes
    - Viewed (0)
  10. src/net/url/url_test.go

    	{Values{"q": {"puppies"}, "oe": {"utf8"}}, "oe=utf8&q=puppies"},
    	{Values{"q": {"dogs", "&", "7"}}, "q=dogs&q=%26&q=7"},
    	{Values{
    		"a": {"a1", "a2", "a3"},
    		"b": {"b1", "b2", "b3"},
    		"c": {"c1", "c2", "c3"},
    	}, "a=a1&a=a2&a=a3&b=b1&b=b2&b=b3&c=c1&c=c2&c=c3"},
    }
    
    func TestEncodeQuery(t *testing.T) {
    	for _, tt := range encodeQueryTests {
    		if q := tt.m.Encode(); q != tt.expected {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 22:52:38 UTC 2024
    - 52.1K bytes
    - Viewed (0)
Back to top