Search Options

Results per page
Sort
Preferred Languages
Advance

Results 131 - 140 of 2,982 for EXPECT (0.1 sec)

  1. platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/artifacts/ivyservice/ivyresolve/strategy/VersionRangeSelectorTest.groovy

            expect:
            isDynamic("[1.0,2.0]")
            isDynamic("[1.0,)")
            isDynamic("[1.0]")
        }
    
        def "never needs metadata"() {
            expect:
            !requiresMetadata("[1.0,2.0]")
            !requiresMetadata("[1.0,)")
            !requiresMetadata("[1.0]")
        }
    
        def "excluded upper bound corner cases"() {
            expect:
            !accept("[1.0,2.0)", "2.0-final")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 5.1K bytes
    - Viewed (0)
  2. subprojects/core/src/integTest/groovy/org/gradle/api/LazyAdditionToDomainObjectCollectionIntegrationTest.groovy

            """
            expect:
            succeeds("help")
            outputDoesNotContain("withType(Sub) called on")
        }
    
        def "addLater(Sub) triggers configuration with eager all"() {
            buildFile << """
                container.all {
                    println "all called on " + it
                }
                container.addLater(provider { create(Sub) })
            """
            expect:
            succeeds("help")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Nov 10 20:36:26 UTC 2021
    - 8.1K bytes
    - Viewed (0)
  3. testing/internal-performance-testing/src/test/groovy/org/gradle/performance/measure/AmountTest.groovy

            expect:
            Amount.valueOf(a, Fruit.apples) * b == Amount.valueOf(c, Fruit.apples)
    
            where:
            a     | b   | c
            0     | 200 | 0
            2     | 1   | 2
            5     | 10  | 50
            10    | -2  | -20
            0.25  | 8   | 2
        }
    
        def "can convert to absolute value"() {
            expect:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  4. src/runtime/testdata/testprog/coro.go

    )
    
    func init() {
    	register("CoroLockOSThreadIterLock", func() {
    		println("expect: OK")
    		CoroLockOSThread(callerExhaust, iterLock)
    	})
    	register("CoroLockOSThreadIterLockYield", func() {
    		println("expect: OS thread locking must match")
    		CoroLockOSThread(callerExhaust, iterLockYield)
    	})
    	register("CoroLockOSThreadLock", func() {
    		println("expect: OK")
    		CoroLockOSThread(callerExhaustLocked, iterSimple)
    	})
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 19:46:10 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  5. pilot/pkg/security/trustdomain/bundle_test.go

    	for _, tc := range testCases {
    		got := tc.trustDomainBundle.ReplaceTrustDomainAliases(tc.principals)
    		if !reflect.DeepEqual(got, tc.expect) {
    			t.Errorf("%s failed. Expect: %s. Got: %s", tc.name, tc.expect, got)
    		}
    	}
    }
    
    func TestReplaceTrustDomainInPrincipal(t *testing.T) {
    	cases := []struct {
    		name          string
    		trustDomainIn string
    		principal     string
    		out           string
    		expectedError string
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 11 16:19:15 UTC 2021
    - 7.4K bytes
    - Viewed (0)
  6. platforms/native/platform-native/src/test/groovy/org/gradle/nativeplatform/toolchain/internal/msvcpp/version/DefaultVswhereVersionLocatorTest.groovy

            given:
            vswhereInProgramFiles()
    
            expect:
            locator.getVswhereInstall().absolutePath == vswhere.absolutePath
        }
    
        def "finds vswhere executable in Program Files (X86)"() {
            given:
            vswhereInProgramFilesX86()
    
            expect:
            locator.getVswhereInstall().absolutePath == vswhere.absolutePath
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 3K bytes
    - Viewed (0)
  7. platforms/jvm/language-java/src/test/groovy/org/gradle/api/internal/tasks/compile/JavaCompilerArgumentsBuilderTest.groovy

        }
    
        def "generates options for an unconfigured spec"() {
            expect:
            builder.build() == defaultOptions
        }
    
        def "generates -source option when current Jvm Version is used"() {
            spec.sourceCompatibility = JavaVersion.current().toString()
    
            expect:
            builder.build() == ["-source", JavaVersion.current().toString()] + defaultOptions
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 31 20:20:36 UTC 2024
    - 11.9K bytes
    - Viewed (0)
  8. subprojects/core/src/test/groovy/org/gradle/api/internal/file/copy/PathNotationConverterTest.groovy

            def file = new File("a.txt")
    
            expect:
            pathNotationParser.parseNotation(file) == file.path
        }
    
        def "with Number"() {
            expect:
            expected == pathNotationParser.parseNotation(input);
            where:
            input << [1, 1.5, -1]
            expected << ["1", "1.5", "-1"]
        }
    
        def "with Boolean"() {
            expect:
            expected == pathNotationParser.parseNotation(input);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 30 16:46:40 UTC 2019
    - 3.7K bytes
    - Viewed (0)
  9. platforms/jvm/code-quality/src/integTest/groovy/org/gradle/api/plugins/quality/pmd/PmdPluginVersionIntegrationTest.groovy

            """.stripIndent()
        }
    
        def "analyze good code"() {
            goodCode()
    
            expect:
            succeeds("check")
            file("build/reports/pmd/main.xml").exists()
            file("build/reports/pmd/test.xml").exists()
        }
    
        def "analyze bad code"() {
            badCode()
    
            expect:
            fails("check")
            failure.assertHasDescription("Execution failed for task ':pmdTest'.")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Mar 28 18:47:00 UTC 2024
    - 13.5K bytes
    - Viewed (0)
  10. subprojects/core/src/test/groovy/org/gradle/api/internal/file/BaseDirFileResolverSpec.groovy

            assert file.exists() && file.file
    
            expect:
            normalize(file) == file
        }
    
        @Requires(UnitTestPreconditions.CaseInsensitiveFs)
        def "does not normalize case"() {
            def file = createFile(new File(tmpDir.testDirectory, 'dir/file.txt'))
            def path = new File(tmpDir.testDirectory, 'dir/FILE.txt')
            assert path.exists() && path.file
    
            expect:
            normalize(path) == path
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 20 11:15:22 UTC 2023
    - 7.9K bytes
    - Viewed (0)
Back to top