Search Options

Results per page
Sort
Preferred Languages
Advance

Results 121 - 130 of 616 for _abc (0.84 sec)

  1. test/fixedbugs/issue15055.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package main
    
    func main() {
    	type name string
    	_ = []byte("abc", "def", 12)    // ERROR "too many arguments (to conversion to \[\]byte: \(\[\]byte\)\(.abc., .def., 12\))?"
    	_ = string("a", "b", nil)       // ERROR "too many arguments (to conversion to string: string\(.a., .b., nil\))?"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 05 18:13:59 UTC 2021
    - 1.1K bytes
    - Viewed (0)
  2. test/switch5.go

    	case 5.0: // ERROR "duplicate case (5 in switch)?"
    	}
    }
    
    func f2(s string) {
    	switch s {
    	case "":
    	case "": // ERROR "duplicate case (.. in switch)?"
    	case "abc":
    	case "abc": // ERROR "duplicate case (.abc. in switch)?"
    	}
    }
    
    func f3(e interface{}) {
    	switch e {
    	case 0:
    	case 0: // ERROR "duplicate case (0 in switch)?"
    	case int64(0):
    	case float32(10):
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 14 21:28:48 UTC 2020
    - 2.3K bytes
    - Viewed (0)
  3. src/path/example_test.go

    	fmt.Println(path.Join("", "a"))
    
    	// Output:
    	// a/b/c
    	// a/b/c
    	// a/b/c
    	// ../xyz
    	//
    	// a
    	// a
    }
    
    func ExampleMatch() {
    	fmt.Println(path.Match("abc", "abc"))
    	fmt.Println(path.Match("a*", "abc"))
    	fmt.Println(path.Match("a*/b", "a/c/b"))
    	// Output:
    	// true <nil>
    	// true <nil>
    	// false <nil>
    }
    
    func ExampleSplit() {
    	split := func(s string) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 19 00:10:22 UTC 2020
    - 2.2K bytes
    - Viewed (0)
  4. test/ken/intervar.go

    	puts	(s string) string;
    }
    
    // ---------
    
    type	Print	struct {
    	whoami	int;
    	put	Iputs;
    }
    
    func (p *Print) dop() string {
    	r := " print " + string(p.whoami + '0')
    	return r + p.put.puts("abc");
    }
    
    // ---------
    
    type	Bio	struct {
    	whoami	int;
    	put	Iputs;
    }
    
    func (b *Bio) puts(s string) string {
    	r := " bio " + string(b.whoami + '0')
    	return r + b.put.puts(s);
    }
    
    // ---------
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 24 05:24:24 UTC 2012
    - 1010 bytes
    - Viewed (0)
  5. test/typeparam/genembed.go

    	a := A[int]{B: B[int]{3}}
    	var i getter[int] = &a
    
    	if got, want := doGet(i), 3; got != want {
    		panic(fmt.Sprintf("got %v, want %v", got, want))
    	}
    
    	as := A[string]{B: B[string]{"abc"}}
    	if got, want := doGet2[string](&as), "abc"; got != want {
    		panic(fmt.Sprintf("got %v, want %v", got, want))
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 01 19:45:34 UTC 2022
    - 901 bytes
    - Viewed (0)
  6. internal/s3select/sql/stringfuncs_contrib_test.go

    		length      int
    		resExpected string
    		errExpected error
    	}{
    		{"abcd", 1, 1, "a", nil},
    		{"abcd", -1, 1, "a", nil},
    		{"abcd", 999, 999, "", nil},
    		{"", 999, 999, "", nil},
    		{"测试abc", 1, 1, "测", nil},
    		{"测试abc", 5, 5, "c", nil},
    	}
    
    	for i, tc := range evalCases {
    		res, err := evalSQLSubstring(tc.s, tc.startIdx, tc.length)
    		if res != tc.resExpected || err != tc.errExpected {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Jun 01 21:59:40 UTC 2021
    - 1.2K bytes
    - Viewed (0)
  7. cmd/object-handlers-common_test.go

    	testCases := []struct {
    		etag              string
    		canonicalizedETag string
    	}{
    		{
    			etag:              "\"\"\"",
    			canonicalizedETag: "",
    		},
    		{
    			etag:              "\"\"\"abc\"",
    			canonicalizedETag: "abc",
    		},
    		{
    			etag:              "abcd",
    			canonicalizedETag: "abcd",
    		},
    		{
    			etag:              "abcd\"\"",
    			canonicalizedETag: "abcd",
    		},
    	}
    	for _, test := range testCases {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Sun Jan 02 17:15:06 UTC 2022
    - 1.4K bytes
    - Viewed (0)
  8. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/ConfigurationCacheSupportedTypesIntegrationTest.groovy

            "DirectoryProperty"           | "objects.directoryProperty()"         | "file('abc')"        | new File('abc')
            "DirectoryProperty"           | "objects.directoryProperty()"         | "null"               | "null"
            "RegularFileProperty"         | "objects.fileProperty()"              | "file('abc')"        | new File('abc')
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 26.1K bytes
    - Viewed (0)
  9. subprojects/diagnostics/src/test/groovy/org/gradle/api/tasks/diagnostics/internal/DefaultGroupTaskReportModelTest.groovy

            TaskDetails task4 = taskDetails('task4')
            TaskDetails task5 = taskDetails('task5')
    
            _ * target.groups >> (['Abc', 'a', 'A', '', 'Other'] as LinkedHashSet)
            _ * target.getTasksForGroup('a') >> [task1]
            _ * target.getTasksForGroup('A') >> [task2]
            _ * target.getTasksForGroup('Abc') >> [task3]
            _ * target.getTasksForGroup('') >> [task4]
            _ * target.getTasksForGroup('Other') >> [task5]
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Nov 10 12:50:23 UTC 2020
    - 3.9K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/base/OptionalTest.java

        assertEquals(java.util.Optional.of("abc"), Optional.toJavaUtil(Optional.of("abc")));
      }
    
      public void testToJavaUtil_instance() {
        assertEquals(java.util.Optional.empty(), Optional.absent().toJavaUtil());
        assertEquals(java.util.Optional.of("abc"), Optional.of("abc").toJavaUtil());
      }
    
      public void testFromJavaUtil() {
        assertNull(Optional.fromJavaUtil(null));
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 21 18:32:41 UTC 2024
    - 11.2K bytes
    - Viewed (0)
Back to top