- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 1,239 for qsort (0.04 sec)
-
pkg/config/host/names_test.go
t.Run(fmt.Sprintf("%d", idx), func(t *testing.T) { // Save a copy to report errors with tmp := make(host.Names, len(tt.in)) copy(tmp, tt.in) sort.Sort(tt.in) if !reflect.DeepEqual(tt.in, tt.want) { t.Fatalf("sort.Sort(%v) = %v, want %v", tmp, tt.in, tt.want) } }) } } func BenchmarkNamesSort(b *testing.B) {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Mar 06 10:35:13 UTC 2024 - 4.5K bytes - Viewed (0) -
src/go/scanner/errors.go
} return p[i].Msg < p[j].Msg } // Sort sorts an [ErrorList]. *[Error] entries are sorted by position, // other errors are sorted by error message, and before any *[Error] // entry. func (p ErrorList) Sort() { sort.Sort(p) } // RemoveMultiples sorts an [ErrorList] and removes all but the first error per line. func (p *ErrorList) RemoveMultiples() { sort.Sort(p)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 12:02:03 UTC 2023 - 3K bytes - Viewed (0) -
src/sort/sort_impl_go121.go
// slices package to implement some `sort` functions faster. However, until // the bootstrap compiler uses Go 1.21 or later, we keep a fallback version // in sort_impl_120.go that retains the old implementation. package sort import "slices" func intsImpl(x []int) { slices.Sort(x) } func float64sImpl(x []float64) { slices.Sort(x) } func stringsImpl(x []string) { slices.Sort(x) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jul 21 13:00:18 UTC 2023 - 876 bytes - Viewed (0) -
testing/internal-performance-testing/src/main/groovy/org/gradle/performance/fixture/PerformanceTestScenarioDefinition.groovy
void writeTo(File file) { sort() new ObjectMapper().writerWithDefaultPrettyPrinter().writeValue(file, this) file.append('\n') } PerformanceTestScenarioDefinition sort() { // Sort all fields before writing to get a deterministic result Collections.sort(performanceTests, { a, b -> a.testId <=> b.testId })
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 04 07:21:38 UTC 2024 - 2.5K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/entity/FacetInfo.java
sort = fessConfig.getQueryFacetFieldsSort(); } if (StringUtil.isNotBlank(fessConfig.getQueryFacetFieldsMissing())) { missing = fessConfig.getQueryFacetFieldsMissing(); } } public BucketOrder getBucketOrder() { if (StringUtil.isNotBlank(sort)) { final String[] values = sort.split("\\."); final boolean asc;
Registered: Wed Jun 12 13:08:18 UTC 2024 - Last Modified: Thu Feb 22 01:37:57 UTC 2024 - 3.6K bytes - Viewed (0) -
platforms/jvm/jvm-services/src/test/groovy/org/gradle/jvm/toolchain/internal/JvmInstallationMetadataComparatorTest.groovy
given: def metadata = [ jvmMetadata("6.0"), jvmMetadata("8.0"), jvmMetadata("11.0"), jvmMetadata("5.1") ] when: metadata.sort(new JvmInstallationMetadataComparator(getJavaHome())) then: assertOrder(metadata, "11.0", "8.0", "6.0", "5.1") } def "deterministically matches vendor over vendor-specific tool version"() {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 15:09:49 UTC 2023 - 5.1K bytes - Viewed (0) -
src/sort/sort_impl_120.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. //go:build !go1.21 package sort func intsImpl(x []int) { Sort(IntSlice(x)) } func float64sImpl(x []float64) { Sort(Float64Slice(x)) } func stringsImpl(x []string) { Sort(StringSlice(x)) } func intsAreSortedImpl(x []int) bool { return IsSorted(IntSlice(x)) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jul 21 13:00:18 UTC 2023 - 602 bytes - Viewed (0) -
platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/artifacts/ivyservice/resolveengine/graph/builder/ModuleSelectorsTest.groovy
expect: sort([prefer30, prefer10, prefer20]) == [prefer30, prefer20, prefer10] and: sort([prefer30, prefer10, prefer20, require20]) == [require20, prefer30, prefer20, prefer10] and: sort([prefer30, prefer10, prefer20, require20, require30]) == [require30, require20, prefer30, prefer20, prefer10] and:
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Oct 10 21:10:11 UTC 2023 - 7.5K bytes - Viewed (0) -
src/cmp/cmp_test.go
// Test that our comparison function is consistent with // sort.Float64s. input := []float64{1.0, 0.0, negzero, math.Inf(1), math.Inf(-1), math.NaN()} sort.Float64s(input) for i := 0; i < len(input)-1; i++ { if cmp.Less(input[i+1], input[i]) { t.Errorf("Less sort mismatch at %d in %v", i, input) } if cmp.Compare(input[i], input[i+1]) > 0 { t.Errorf("Compare sort mismatch at %d in %v", i, input) } } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 04 23:39:07 UTC 2024 - 3.9K bytes - Viewed (0) -
tests/helper_test.go
if len(user.Pets) != len(expect.Pets) { t.Fatalf("pets should equal, expect: %v, got %v", len(expect.Pets), len(user.Pets)) } sort.Slice(user.Pets, func(i, j int) bool { return user.Pets[i].ID > user.Pets[j].ID }) sort.Slice(expect.Pets, func(i, j int) bool { return expect.Pets[i].ID > expect.Pets[j].ID }) for idx, pet := range user.Pets {
Registered: Wed Jun 12 16:27:09 UTC 2024 - Last Modified: Tue Mar 19 03:50:28 UTC 2024 - 8K bytes - Viewed (0)