anchor.diff:              ?assertEqual(ExpectAddr, ActualAddr),
               ok
           end,
  +    {Addrs, R, AssertSame}.
  +
  +ketama_cring_test() ->
  +    {_Addrs, _R, AssertSame} = some_test_addrs(4),
       % Data from spymemcached KetamaNodeLocatorTest.java.
       AssertSame(1, "dustin"),
       AssertSame(3, "noelani"),
  
positive.code:     ok.
  
  some_test_addrs(N) ->
      lists:map(fun(X) -> {{"127.0.0.1", 10000 + X}, some_data} end,
                lists:seq(0, N - 1)).
  
  ketama_cring_test() ->
      Addrs = some_test_addrs(4),
      R = cring:create(Addrs, ?MODULE, 160),
      AssertSame =
          fun(ExpectAddrIndex, Key) ->
  
negative.code: cluster_resizing_test() ->
      % Data from spymemcached KetamaNodeLocatorTest.java.
      (fun() ->
        {_Addrs, _R, AssertSame} = some_test_addrs(4),
        AssertSame(1, "dustin"),
        AssertSame(3, "noelani"),
        AssertSame(1, "some other key"),
        ok
       end)(),
      (fun() ->
        {_Addrs, _R, AssertSame} = some_test_addrs(5),
        AssertSame(1, "dustin"),
        AssertSame(3, "noelani"),
        AssertSame(5, "some other key"),
  