Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestListValueContains (0.39 sec)

  1. staging/src/k8s.io/apiserver/pkg/cel/value_test.go

    	if err != nil {
    		t.Fatal(err)
    	}
    	if !reflect.DeepEqual(complexList, [][]string{{"first"}, {"second", "third"}}) {
    		t.Errorf("got %v, wanted [['first'], ['second', 'third']]", complexList)
    	}
    }
    
    func TestListValueContains(t *testing.T) {
    	lv := NewListValue()
    	lv.Append(testValue(t, 1, "first"))
    	lv.Append(testValue(t, 2, "second"))
    	lv.Append(testValue(t, 3, "third"))
    	for i := types.Int(0); i < lv.Size().(types.Int); i++ {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 10 22:05:55 UTC 2022
    - 10.4K bytes
    - Viewed (0)
Back to top