Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 21 for str1 (0.07 sec)

  1. src/slices/sort_test.go

    		{[]string{}, "", 0, false},
    
    		{str1, "foo", 0, true},
    		{str1, "bar", 0, false},
    		{str1, "zx", 1, false},
    
    		{str2, "aa", 0, false},
    		{str2, "ab", 0, true},
    		{str2, "ad", 1, false},
    		{str2, "ca", 1, true},
    		{str2, "ra", 2, false},
    
    		{str3, "bb", 0, false},
    		{str3, "mo", 0, true},
    		{str3, "nb", 1, false},
    		{str3, "qo", 1, true},
    		{str3, "tr", 2, false},
    		{str3, "vo", 2, true},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 09 19:20:55 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  2. 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)
  3. 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)
  4. cmd/utils.go

    func lcpSuffix(strs []string) string {
    	return lcp(strs, false)
    }
    
    func lcp(strs []string, pre bool) string {
    	// short-circuit empty list
    	if len(strs) == 0 {
    		return ""
    	}
    	xfix := strs[0]
    	// short-circuit single-element list
    	if len(strs) == 1 {
    		return xfix
    	}
    	// compare first to rest
    	for _, str := range strs[1:] {
    		xfixl := len(xfix)
    		strl := len(str)
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed Jun 05 22:00:34 UTC 2024
    - 31.9K bytes
    - Viewed (0)
  5. src/internal/coverage/cfile/ts_test.go

    	}
    
    	// Look for the expected things in the coverage profile.
    	contents, err := os.ReadFile(textfile)
    	strc := string(contents)
    	if err != nil {
    		t.Fatalf("problems reading text file %s: %v", textfile, err)
    	}
    	if !strings.Contains(strc, token) {
    		t.Logf("content: %s\n", string(contents))
    		t.Fatalf("cov profile does not contain aux meta content %q", token)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 09:58:07 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  6. security/pkg/k8s/chiron/utils_test.go

    }
    
    // Get the server port from server.URL (e.g., https://127.0.0.1:36253)
    func getServerPort(server *httptest.Server) (int, error) {
    	strs := strings.Split(server.URL, ":")
    	if len(strs) < 2 {
    		return 0, fmt.Errorf("server.URL is invalid: %v", server.URL)
    	}
    	port, err := strconv.Atoi(strs[len(strs)-1])
    	if err != nil {
    		return 0, fmt.Errorf("error to extract port from URL: %v", server.URL)
    	}
    	return port, nil
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 15 03:58:11 UTC 2024
    - 13K bytes
    - Viewed (0)
  7. docs/en/docs/tutorial/query-params-str-validations.md

        ```
    
    The query parameter `q` is of type `Union[str, None]` (or `str | None` in Python 3.10), that means that it's of type `str` but could also be `None`, and indeed, the default value is `None`, so FastAPI will know it's not required.
    
    !!! note
        FastAPI will know that the value of `q` is not required because of the default value `= None`.
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Fri May 31 02:38:05 UTC 2024
    - 25.8K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/collect/IteratorsTest.java

        }.test();
      }
    
      public void testConcatPartiallyAdvancedSecond() {
        Iterator<String> itr1 =
            Iterators.concat(Iterators.singletonIterator("a"), Iterators.forArray("b", "c"));
        assertEquals("a", itr1.next());
        assertEquals("b", itr1.next());
        Iterator<String> itr2 = Iterators.concat(Iterators.singletonIterator("d"), itr1);
        assertEquals("d", itr2.next());
        assertEquals("c", itr2.next());
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri May 03 13:01:51 UTC 2024
    - 55.7K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/walk/assign.go

    		slice.SetType(s.Type())
    		slice.SetBounded(true)
    
    		ptr1, len1 := backingArrayPtrLen(cheapExpr(slice, &nodes))
    		ptr2, len2 := backingArrayPtrLen(l2)
    
    		fn := typecheck.LookupRuntime("slicecopy", ptr1.Type().Elem(), ptr2.Type().Elem())
    		ncopy = mkcall1(fn, types.Types[types.TINT], &nodes, ptr1, len1, ptr2, len2, ir.NewInt(base.Pos, elemtype.Size()))
    	} else {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 17:09:06 UTC 2024
    - 20.3K bytes
    - Viewed (0)
  10. src/slices/iter_test.go

    	s := Collect(testSeq)
    	want := testSeqResult
    	if !Equal(s, want) {
    		t.Errorf("got %v, want %v", s, want)
    	}
    }
    
    var iterTests = [][]string{
    	nil,
    	{"a"},
    	{"a", "b"},
    	{"b", "a"},
    	strs[:],
    }
    
    func TestValuesAppendSeq(t *testing.T) {
    	for _, prefix := range iterTests {
    		for _, s := range iterTests {
    			got := AppendSeq(prefix, Values(s))
    			want := append(prefix, s...)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 10 17:28:50 UTC 2024
    - 5.7K bytes
    - Viewed (0)
Back to top