Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for TestInsertAfterUnknownMark (0.38 sec)

  1. test/typeparam/listimp2.dir/main.go

    	l.PushBack(3)
    	l.InsertBefore(1, new(a.Element[int]))
    	checkList(&l, []interface{}{1, 2, 3})
    }
    
    // Test that a list l is not modified when calling InsertAfter with a mark that is not an element of l.
    func TestInsertAfterUnknownMark() {
    	var l a.List[int]
    	l.PushBack(1)
    	l.PushBack(2)
    	l.PushBack(3)
    	l.InsertAfter(1, new(a.Element[int]))
    	checkList(&l, []interface{}{1, 2, 3})
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 24 02:14:15 UTC 2022
    - 7.4K bytes
    - Viewed (0)
  2. test/typeparam/list2.go

    	l.PushBack(3)
    	l.InsertBefore(1, new(_Element[int]))
    	checkList(&l, []interface{}{1, 2, 3})
    }
    
    // Test that a list l is not modified when calling InsertAfter with a mark that is not an element of l.
    func TestInsertAfterUnknownMark() {
    	var l _List[int]
    	l.PushBack(1)
    	l.PushBack(2)
    	l.PushBack(3)
    	l.InsertAfter(1, new(_Element[int]))
    	checkList(&l, []interface{}{1, 2, 3})
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 26 19:58:28 UTC 2024
    - 15.3K bytes
    - Viewed (0)
  3. src/container/list/list_test.go

    	l.PushBack(3)
    	l.InsertBefore(1, new(Element))
    	checkList(t, &l, []any{1, 2, 3})
    }
    
    // Test that a list l is not modified when calling InsertAfter with a mark that is not an element of l.
    func TestInsertAfterUnknownMark(t *testing.T) {
    	var l List
    	l.PushBack(1)
    	l.PushBack(2)
    	l.PushBack(3)
    	l.InsertAfter(1, new(Element))
    	checkList(t, &l, []any{1, 2, 3})
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 13 18:45:54 UTC 2021
    - 7.7K bytes
    - Viewed (0)
Back to top