Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for slicetest (0.14 sec)

  1. maven-model/src/test/java/org/apache/maven/model/SiteTest.java

    import static org.junit.jupiter.api.Assertions.assertNotNull;
    import static org.junit.jupiter.api.Assertions.assertTrue;
    
    /**
     * Tests {@code Site}.
     *
     */
    class SiteTest {
    
        @Test
        void testHashCodeNullSafe() {
            new Site().hashCode();
        }
    
        @Test
        void testEqualsNullSafe() {
            assertFalse(new Site().equals(null));
    
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Wed Sep 06 08:39:32 UTC 2023
    - 1.5K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apimachinery/pkg/runtime/splice_test.go

    Eric Lin <******@****.***> 1685560352 +0000
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jun 05 18:03:48 UTC 2023
    - 2.5K bytes
    - Viewed (0)
  3. src/slices/sort_benchmark_test.go

    // Copyright 2023 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.
    
    package slices_test
    
    import (
    	"cmp"
    	"fmt"
    	"slices"
    	"strings"
    	"testing"
    )
    
    func BenchmarkBinarySearchFloats(b *testing.B) {
    	for _, size := range []int{16, 32, 64, 128, 512, 1024} {
    		b.Run(fmt.Sprintf("Size%d", size), func(b *testing.B) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 23:39:07 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  4. src/slices/iter_test.go

    // Copyright 2024 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.
    
    package slices_test
    
    import (
    	"iter"
    	"math/rand/v2"
    	. "slices"
    	"testing"
    )
    
    func TestAll(t *testing.T) {
    	for size := 0; size < 10; size++ {
    		var s []int
    		for i := range size {
    			s = append(s, i)
    		}
    		ei, ev := 0, 0
    		cnt := 0
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 10 17:28:50 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  5. src/slices/example_test.go

    // Copyright 2023 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.
    
    package slices_test
    
    import (
    	"cmp"
    	"fmt"
    	"slices"
    	"strconv"
    	"strings"
    )
    
    func ExampleBinarySearch() {
    	names := []string{"Alice", "Bob", "Vera"}
    	n, found := slices.BinarySearch(names, "Vera")
    	fmt.Println("Vera:", n, found)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 10 17:28:50 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  6. src/slices/sort_test.go

    // Copyright 2023 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.
    
    package slices_test
    
    import (
    	"cmp"
    	"fmt"
    	"math"
    	"math/rand"
    	. "slices"
    	"strconv"
    	"strings"
    	"testing"
    )
    
    var ints = [...]int{74, 59, 238, -784, 9845, 959, 905, 0, 0, 42, 7586, -5467984, 7586}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 09 19:20:55 UTC 2024
    - 9.5K bytes
    - Viewed (0)
Back to top