Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for TestDifference (0.67 sec)

  1. pkg/util/sets/set_test.go

    		{New(elements2...), New(elements...)},
    	} {
    		s1, s2 := sets[0], sets[1]
    		if got := s1.Union(s2); !got.Equals(want) {
    			t.Errorf("expected %v; got %v", want, got)
    		}
    	}
    }
    
    func TestDifference(t *testing.T) {
    	s1 := New("a", "b", "c", "d")
    	s2 := New("a", "b", "e")
    	want := New("c", "d")
    
    	t.Run("difference", func(t *testing.T) {
    		d := s1.Difference(s2)
    		if !want.Equals(d) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sat Mar 30 05:26:03 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/quota/v1/resources_test.go

    		actual := Intersection(testCase.a, testCase.b)
    		if !reflect.DeepEqual(actual, testCase.expected) {
    			t.Errorf("%s expected: %#v, actual: %#v", testName, testCase.expected, actual)
    		}
    	}
    }
    
    func TestDifference(t *testing.T) {
    	testCases := map[string]struct {
    		a        []corev1.ResourceName
    		b        []corev1.ResourceName
    		expected []corev1.ResourceName
    	}{
    		"empty": {
    			a:        []corev1.ResourceName{},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 12 01:57:38 UTC 2021
    - 15.6K bytes
    - Viewed (0)
Back to top