Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for TestSort (0.13 sec)

  1. android/guava-tests/test/com/google/common/primitives/UnsignedBytesTest.java

          }
        }
      }
    
      public void testSort() {
        testSort(new byte[] {}, new byte[] {});
        testSort(new byte[] {2}, new byte[] {2});
        testSort(new byte[] {2, 1, 0}, new byte[] {0, 1, 2});
        testSort(new byte[] {2, GREATEST, 1, LEAST}, new byte[] {LEAST, 1, 2, GREATEST});
      }
    
      static void testSort(byte[] input, byte[] expected) {
        input = Arrays.copyOf(input, input.length);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Feb 20 17:00:05 UTC 2024
    - 13.4K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/primitives/UnsignedBytesTest.java

          }
        }
      }
    
      public void testSort() {
        testSort(new byte[] {}, new byte[] {});
        testSort(new byte[] {2}, new byte[] {2});
        testSort(new byte[] {2, 1, 0}, new byte[] {0, 1, 2});
        testSort(new byte[] {2, GREATEST, 1, LEAST}, new byte[] {LEAST, 1, 2, GREATEST});
      }
    
      static void testSort(byte[] input, byte[] expected) {
        input = Arrays.copyOf(input, input.length);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Feb 20 17:00:05 UTC 2024
    - 13.4K bytes
    - Viewed (0)
  3. pkg/slices/slices_test.go

    			result := SortBy(tc.input, tc.extract)
    			if !reflect.DeepEqual(result, tc.expected) {
    				t.Fatalf("Expected: %+v, but got: %+v", tc.expected, result)
    			}
    		})
    	}
    }
    
    func TestSort(t *testing.T) {
    	testCases := []struct {
    		name     string
    		input    []int
    		expected []int
    	}{
    		{
    			name:     "Single_Element",
    			input:    []int{1},
    			expected: []int{1},
    		},
    		{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 10 23:33:56 UTC 2024
    - 18.2K bytes
    - Viewed (0)
  4. pkg/proxy/nftables/helpers_test.go

    			sourceIP: "10.0.0.2",
    			destIP:   "10.0.0.3",
    			destPort: 80,
    			output:   "",
    		},
    		{
    			name:     "single endpoint",
    			sourceIP: "10.0.0.2",
    			destIP:   "172.30.0.41",
    			destPort: 80,
    			output:   "10.180.0.1:80",
    		},
    		{
    			name:     "multiple endpoints",
    			sourceIP: "10.0.0.2",
    			destIP:   "172.30.0.44",
    			destPort: 80,
    			output:   "10.180.0.4:80, 10.180.0.5:80",
    		},
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 02 09:57:47 UTC 2024
    - 48.5K bytes
    - Viewed (0)
  5. pkg/proxy/servicechangetracker_test.go

    					Ports: []v1.ServicePort{
    						{
    							Name:     "testPort",
    							Port:     int32(12345),
    							Protocol: v1.ProtocolTCP,
    						},
    					},
    				},
    			},
    			expected: map[ServicePortName]*BaseServicePortInfo{
    				makeServicePortName("test", "extra-space", "testPort", v1.ProtocolTCP): makeTestServiceInfo(testClusterIPv4, 12345, "TCP", 0, func(bsvcPortInfo *BaseServicePortInfo) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 33.7K bytes
    - Viewed (0)
Back to top