Exemple #1
0
        public void test_offset_creation_with_two()
        {
            var dict         = new Dictionary <long, Simhash>();
            var simHashIndex = new SimhashIndex(dict, k: 2);
            var offsets      = simHashIndex.make_offsets();

            Assert.AreEqual(0, offsets[0]);
            Assert.AreEqual(42, offsets[2]);
            Assert.IsTrue(offsets.Count == 3);
        }