X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=tests%2Ffunction.c;h=b6850288b5782571b964e1b47a8b466a7ac25212;hb=bdb7897b42e740471cc02589eda4434a09bbd330;hp=4ec247f6dd2e022d341f5ed5b7d8c937464a1646;hpb=b7f043ada7b39b3e9e244a7f6864a31cd08ad650;p=awesomized%2Flibmemcached diff --git a/tests/function.c b/tests/function.c index 4ec247f6..b6850288 100644 --- a/tests/function.c +++ b/tests/function.c @@ -2161,7 +2161,12 @@ test_return user_supplied_bug18(memcached_st *memc) assert(strcmp(server_pool[7].hostname, "10.0.1.8") == 0); assert(server_pool[7].port == 11211); assert(server_pool[7].weight == 100); - + + /* VDEAAAAA hashes to fffcd1b5, after the last continuum point, and lets + * us test the boundary wraparound. + */ + assert(memcached_generate_hash(memc, (unsigned char *)"VDEAAAAA", 8) == memc->continuum[0].index); + /* verify the standard ketama set. */ for (i= 0; i < 99; i++) {