Exemple #1
0
        public void TestToDenseHash()
        {
            List <int> sparseHash = new List <int>()
            {
                65, 27, 9, 1, 4, 3, 40, 50, 91, 7, 6, 0, 2, 5, 68, 22
            };
            var sut    = new KnotHash();
            var result = sut.ToDenseHash(sparseHash, 16);

            Assert.Equal(64, result.First());
        }