Example #1
0
        public void TestVectors()
        {
            for (int i = 1; i < 2048; ++i)
            {
                string testData = new string('a', i);

                ulong value = FarshHash64.ComputeHash(Encoding.ASCII.GetBytes(testData));

                Assert.Equal(_vectors[i - 1], value);
            }
        }
Example #2
0
 public ulong FarshHash64Test()
 {
     return(FarshHash64.ComputeHash(_testData));
 }