Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 1,112 for a$b (0.02 sec)

  1. platforms/core-configuration/declarative-dsl-core/src/test/kotlin/org/gradle/internal/declarativedsl/parsing/ImportTest.kt

            val imports = listOf(
                importOf("a", "b", "C"),
                importOf("a", "b", "c", "d")
            )
            val analysisContext = testContext()
            val result = defaultCodeResolver().collectImports(imports, analysisContext)
    
            assertEquals(
                mapOf(
                    "C" to DefaultFqName("a.b", "C"),
                    "d" to DefaultFqName("a.b.c", "d")
                ),
                result
            )
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 30 12:25:46 UTC 2024
    - 4K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apimachinery/pkg/util/sets/set_generic_test.go

    	}
    	if !s.HasAll("a", "b") {
    		t.Errorf("Missing contents: %#v", s)
    	}
    	s2.Insert("a", "b", "d")
    	if s.IsSuperset(s2) {
    		t.Errorf("Unexpected contents: %#v", s)
    	}
    	s2.Delete("d")
    	if !s.IsSuperset(s2) {
    		t.Errorf("Missing contents: %#v", s)
    	}
    }
    
    func TestSetDeleteMultiples(t *testing.T) {
    	s := sets.Set[string]{}
    	s.Insert("a", "b", "c")
    	if len(s) != 3 {
    		t.Errorf("Expected len=3: %d", len(s))
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 10 09:03:44 UTC 2023
    - 7.7K bytes
    - Viewed (0)
  3. src/strings/compare.go

    // The result will be 0 if a == b, -1 if a < b, and +1 if a > b.
    //
    // Use Compare when you need to perform a three-way comparison (with
    // slices.SortFunc, for example). It is usually clearer and always faster
    // to use the built-in string comparison operators ==, <, >, and so on.
    func Compare(a, b string) int {
    	return bytealg.CompareString(a, b)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 23:39:07 UTC 2024
    - 628 bytes
    - Viewed (0)
  4. test/phiopt.go

    }
    
    //go:noinline
    func f2(a, b int) bool {
    	x := true
    	if a == b {
    		x = false
    	}
    	return x // ERROR "converted OpPhi to Not$"
    }
    
    //go:noinline
    func f3(a, b int) bool {
    	x := false
    	if a == b {
    		x = true
    	}
    	return x // ERROR "converted OpPhi to Copy$"
    }
    
    //go:noinline
    func f4(a, b bool) bool {
    	return a || b // ERROR "converted OpPhi to OrB$"
    }
    
    //go:noinline
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:25 UTC 2023
    - 2K bytes
    - Viewed (0)
  5. test/typeparam/combine.go

    		if !ok {
    			return t, false
    		}
    		return join(t1, t2), true
    	}
    }
    
    type Pair[A, B any] struct {
    	A A
    	B B
    }
    
    func _NewPair[A, B any](a A, b B) Pair[A, B] {
    	return Pair[A, B]{a, b}
    }
    
    func Combine2[A, B any](ga Gen[A], gb Gen[B]) Gen[Pair[A, B]] {
    	return Combine(ga, gb, _NewPair[A, B])
    }
    
    func main() {
    	var g1 Gen[int] = func() (int, bool) { return 3, true }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 01 19:45:34 UTC 2022
    - 1.5K bytes
    - Viewed (0)
  6. platforms/core-runtime/base-services/src/test/groovy/org/gradle/internal/BiActionsTest.groovy

            BiAction<List<String>, List<String>> first = {a, b -> a << "first a"; b << "first b" }
            BiAction<List<String>, List<String>> second = {a, b -> a << "second a"; b << "second b" }
            def composite = BiActions.composite(first, second)
            def a = []
            def b = []
    
            when:
            composite.execute(a, b)
    
            then:
            a == ["first a", "second a"]
            b == ["first b", "second b"]
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:48:02 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  7. platforms/core-runtime/base-services/src/test/groovy/org/gradle/internal/process/ArgWriterTest.groovy

        def "escapes backslash in argument"() {
            when:
            argWriter.args('a\\b', 'a \\ bc')
    
            then:
            writer.toString() == toPlatformLineSeparators('a\\\\b "a \\\\ bc"\n')
        }
    
        def "does not escape characters in windows style"() {
            def argWriter = ArgWriter.windowsStyle(printWriter)
    
            when:
            argWriter.args('a\\b', 'a "\\" bc')
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 05 19:36:14 UTC 2023
    - 3.5K bytes
    - Viewed (0)
  8. analysis/analysis-api/testData/components/dataFlowInfoProvider/exitPointSnapshot/controlFlow/conditionalJumps/break4.txt

    KaDataFlowExitPointSnapshot:
      defaultExpressionInfo = DefaultExpressionInfo:
        expression = if (a + b > 0) break
                else {
                    consume(a - b)
                    if (a - b > 0) break else consume(a + b)
                }
        type = kotlin.Unit
      hasEscapingJumps = true
      hasJumps = true
      hasMultipleJumpKinds = false
      hasMultipleJumpTargets = false
      jumpExpressions = [
        break,
        break
      ]
      returnValueType = null
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Wed May 29 17:43:55 UTC 2024
    - 499 bytes
    - Viewed (0)
  9. platforms/core-runtime/logging/src/test/groovy/org/gradle/util/GradleVersionTest.groovy

            expect:
            canCompareTwoVersions(a, b)
    
            where:
            a      | b
            '0.9'  | '0.8'
            '1.0'  | '0.10'
            '10.0' | '2.1'
            '2.5'  | '2.4'
        }
    
        def canComparePointVersions() {
            expect:
            canCompareTwoVersions(a, b)
    
            where:
            a                   | b
            '0.9.2'             | '0.9.1'
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:05:18 UTC 2023
    - 8K bytes
    - Viewed (0)
  10. src/path/filepath/example_unix_test.go

    }
    
    func ExampleJoin() {
    	fmt.Println("On Unix:")
    	fmt.Println(filepath.Join("a", "b", "c"))
    	fmt.Println(filepath.Join("a", "b/c"))
    	fmt.Println(filepath.Join("a/b", "c"))
    	fmt.Println(filepath.Join("a/b", "/c"))
    
    	fmt.Println(filepath.Join("a/b", "../../../xyz"))
    
    	// Output:
    	// On Unix:
    	// a/b/c
    	// a/b/c
    	// a/b/c
    	// a/b/c
    	// ../xyz
    }
    
    func ExampleMatch() {
    	fmt.Println("On Unix:")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 28 18:17:57 UTC 2021
    - 3.4K bytes
    - Viewed (0)
Back to top