Windows: remove unused and leaked uniRootFileNameClone
[openafs.git] / tests / opr / jhash-t.c
index 9dd7e1d..707cd06 100644 (file)
@@ -39,7 +39,7 @@
 int
 main(int argc, char **argv)
 {
-   plan(11);
+   plan(13);
    uint32_t test[] = {3526055646UL, 2064483663UL, 3234460805UL, 3963629775UL};
 
    is_int(256, opr_jhash_size(8), "opr_jhash_size returns expected value");
@@ -57,10 +57,15 @@ main(int argc, char **argv)
    is_int(1100796964, opr_jhash_int(test[0], 0),
           "single value works through jhash_int");
 
+   is_int(3704403432, opr_jhash(test, 2, 0),
+         "Hashing two values works");
+   is_int(3704403432, opr_jhash_int2(test[0], test[1], 0),
+         "jhash_int2 gives same result");
+
    is_int(0xdeadbeef, opr_jhash_opaque("", 0, 0),
          "Hashing an empty string works");
 
-   is_int(2748273291,
+   is_int(2748273291UL,
          opr_jhash_opaque("Four score and seven years ago", 30, 0),
          "Hashing a string with a 0 initval works");
    is_int(1389900913,