Esempio n. 1
0
        public void Should_lookup_values()
        {
            // TODO
            var map = new ObjIntHashMap(1024);

            for (int i = 0; i < 2048; i++)
            {
                map.Put("Sym_" + i, i);
            }

            for (int i = 0; i < 2048; i++)
            {
                var    expected = "Sym_" + i;
                string actual;
                map.LookupValue(i, out actual);
                Assert.That(actual, Is.EqualTo(expected), "iteration " + i);
            }
        }
Esempio n. 2
0
 public bool IsValueCached(int cacheIndex, out string value)
 {
     return(_cache2.LookupValue(cacheIndex, out value));
 }