(t *testing.T)
| 30 | } |
| 31 | |
| 32 | func TestWalk(t *testing.T) { |
| 33 | list := NewCyclic[int]() |
| 34 | fillList(list, 3) |
| 35 | |
| 36 | want := 1 |
| 37 | got := list.Walk() |
| 38 | |
| 39 | if got.Val != want { |
| 40 | t.Errorf("got: %v, want: nil", got) |
| 41 | } |
| 42 | } |
| 43 | |
| 44 | func TestRotate(t *testing.T) { |
| 45 | type testCase struct { |