Skip to content

Commit

Permalink
Linting
Browse files Browse the repository at this point in the history
Signed-off-by: joshvanl <[email protected]>
  • Loading branch information
JoshVanL committed Nov 12, 2024
1 parent 10f2889 commit 1d4ab62
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ring/ring_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,11 +112,11 @@ func makeN(n int) *Ring[int] {
func sumN(n int) int { return (n*n + n) / 2 }

func TestNew(t *testing.T) {
for i := 0; i < 10; i++ {
for i := range 10 {
r := New[int](i)
verify(t, r, i, -1)
}
for i := 0; i < 10; i++ {
for i := range 10 {
r := makeN(i)
verify(t, r, i, sumN(i))
}
Expand Down Expand Up @@ -194,7 +194,7 @@ func TestUnlink(t *testing.T) {
func TestLinkUnlink(t *testing.T) {
for i := 1; i < 4; i++ {
ri := New[int](i)
for j := 0; j < i; j++ {
for j := range i {
rj := ri.Unlink(j)
verify(t, rj, j, -1)
verify(t, ri, i-j, -1)
Expand Down

0 comments on commit 1d4ab62

Please sign in to comment.