public void LessSimpleHashTest() { var x = 37; // 100101 var y = 21; // 010101 var z = 16777215; // 111111111111111111111111 var bv = 18446742974197925427UL; // 111111111111111111111111000000000000000000000000000011000110011 var bv_is = LSHCalc.hashi(x, y, z); Assert.AreEqual(bv, bv_is); }
public void SimpleHashTest() { var x = 1; var y = 1; var z = 1; var bv = Convert.ToUInt64(0x10000000003); var bv_is = LSHCalc.hashi(x, y, z); Assert.AreEqual(bv, bv_is); }