Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 41 for permutation (0.17 sec)

  1. platforms/core-configuration/model-core/src/test/groovy/org/gradle/model/internal/inspect/ModelRuleBindingTest.groovy

            ]).asString()
    
            cause.message == message
    
            where:
            order << [ProvidesStringOne, ProvidesStringTwo, MutatesString].permutations()
        }
    
        static class MutatesS1AsInteger extends RuleSource {
            @Mutate
            void m(@Path("s1") Integer s1) {
    
            }
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 6.4K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/collect/TopKSelectorTest.java

      public void testOfferedKPlusOne() {
        for (List<Integer> list : Collections2.permutations(Ints.asList(1, 2, 3, 4, 5))) {
          TopKSelector<Integer> top = TopKSelector.least(4);
          top.offerAll(list);
          assertThat(top.topK()).containsExactly(1, 2, 3, 4).inOrder();
        }
      }
    
      public void testOfferedThreeK() {
        for (List<Integer> list : Collections2.permutations(Ints.asList(1, 2, 3, 4, 5, 6))) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Mar 07 18:34:03 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  3. platforms/jvm/ear/src/test/groovy/org/gradle/plugins/ear/descriptor/internal/DefaultDeploymentDescriptorTest.groovy

            // This method generates all permutations so we can assert we have at least one
            def attributesPermutations = { String template, List<String> attributes ->
                def permutations = []
                attributes.eachPermutation { attrs ->
                    permutations << template.replace('##ATTRIBUTES##', attrs.join(' '))
                }
                permutations
            }
            switch (version) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 19 22:06:51 UTC 2023
    - 9.4K bytes
    - Viewed (0)
  4. test/chan/perm.go

    // errorcheck
    
    // Copyright 2009 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // Test various correct and incorrect permutations of send-only,
    // receive-only, and bidirectional channels.
    // Does not compile.
    
    package main
    
    var (
    	cr <-chan int
    	cs chan<- int
    	c  chan int
    )
    
    func main() {
    	cr = c  // ok
    	cs = c  // ok
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jul 14 23:33:46 UTC 2021
    - 1.4K bytes
    - Viewed (0)
  5. testing/internal-integ-testing/src/test/groovy/org/gradle/integtests/fixtures/executer/TaskOrderSpecsTest.groovy

            when:
            spec.assertMatches(-1, executedTasks)
    
            then:
            thrown(AssertionError)
    
            where:
            executedTasks << [':a', ':b', ':c'].permutations().findAll { it != [':a', ':b', ':c'] } + [
                [':a', ':c'],
                [':a', ':b'],
                [':b', ':c'],
                [':a', ':c', ':b', ':d'],
                [':z', ':b', ':a', ':c'],
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  6. test/torture.go

    		uint64(s[11]))<<4|
    		uint64(s[12]))<<4|
    		uint64(s[13]))<<4|
    		uint64(s[14]))<<4 |
    		uint64(s[15]))
    	return r
    }
    
    // Compute the determinant of a 4x4-matrix by the sum
    // over all index permutations.
    func determinant(m [4][4]float64) float64 {
    	return m[0][0]*m[1][1]*m[2][2]*m[3][3] -
    		m[0][0]*m[1][1]*m[2][3]*m[3][2] -
    		m[0][0]*m[1][2]*m[2][1]*m[3][3] +
    		m[0][0]*m[1][2]*m[2][3]*m[3][1] +
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jul 01 07:20:51 UTC 2014
    - 7.7K bytes
    - Viewed (0)
  7. src/internal/types/testdata/fixedbugs/issue51229.go

    // license that can be found in the LICENSE file.
    
    package p
    
    // Constraint type inference should be independent of the
    // ordering of the type parameter declarations. Try all
    // permutations in the test case below.
    // Permutations produced by https://go.dev/play/p/PHcZNGJTEBZ.
    
    func f00[S1 ~[]E1, S2 ~[]E2, E1 ~byte, E2 ~byte](S1, S2) {}
    func f01[S2 ~[]E2, S1 ~[]E1, E1 ~byte, E2 ~byte](S1, S2) {}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 17 19:54:27 UTC 2023
    - 4.8K bytes
    - Viewed (0)
  8. platforms/extensibility/plugin-use/src/integTest/groovy/org/gradle/plugin/use/CorePluginUseIntegrationSpec.groovy

                }
    
                apply plugin: "${plugins[1]}"
            """
    
            then:
            succeeds "clean"
    
            where:
            plugins << [QUALIFIED_JAVA, UNQUALIFIED_JAVA].permutations()
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 22:36:52 UTC 2023
    - 5.9K bytes
    - Viewed (0)
  9. platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/artifacts/ivyservice/resolveengine/graph/builder/ModuleSelectorsTest.groovy

            }
            indexes.each {
                selectors.remove(candidateSelectors[it])
            }
    
            then:
            verifyEmpty(selectors)
    
            where:
            indexes << [0, 1, 2, 3].permutations()
    
        }
    
        def "sorts selectors for faster selection"() {
            given:
            def dynamic1 = dynamicSelector()
            def dynamic2 = dynamicSelector()
            def latest = latestSelector()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 7.5K bytes
    - Viewed (0)
  10. platforms/extensibility/plugin-development/src/integTest/groovy/org/gradle/plugin/devel/impldeps/GradleImplDepsCompatibilityIntegrationTest.groovy

                                       new GradleDependency('Tooling API', 'implementation', "'org.gradle:gradle-tooling-api'")].permutations()
        }
    
        static void writeClassesInZipFileToTextFile(File zipFile, File txtFile) {
            IoActions.withResource(new ZipInputStream(new FileInputStream(zipFile)), new ErroringAction<ZipInputStream>() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 22:36:52 UTC 2023
    - 8.5K bytes
    - Viewed (0)
Back to top