Commit a1731ac0 authored by Shawn Smith's avatar Shawn Smith Committed by Dave Cheney

container/ring: add test for Move with empty Ring

R=golang-codereviews, dave
CC=golang-codereviews
https://golang.org/cl/46630044
parent b4571bdf
......@@ -218,3 +218,11 @@ func TestLinkUnlink(t *testing.T) {
}
}
}
// Test that calling Move() on an empty Ring initializes it.
func TestMoveEmptyRing(t *testing.T) {
var r Ring
r.Move(1)
verify(t, &r, 1, 0)
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment