Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestSetDeleteMultiples (0.12 sec)

  1. staging/src/k8s.io/apimachinery/pkg/util/sets/set_generic_test.go

    	}
    	s2.Insert("a", "b", "d")
    	if s.IsSuperset(s2) {
    		t.Errorf("Unexpected contents: %#v", s)
    	}
    	s2.Delete("d")
    	if !s.IsSuperset(s2) {
    		t.Errorf("Missing contents: %#v", s)
    	}
    }
    
    func TestSetDeleteMultiples(t *testing.T) {
    	s := sets.Set[string]{}
    	s.Insert("a", "b", "c")
    	if len(s) != 3 {
    		t.Errorf("Expected len=3: %d", len(s))
    	}
    
    	s.Delete("a", "c")
    	if len(s) != 1 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 10 09:03:44 UTC 2023
    - 7.7K bytes
    - Viewed (0)
Back to top