コード例 #1
0
 public void HasPrefixLookupBenchmark()
 {
     for (int i = 0; i < _words.Length; i++)
     {
         string prefix = _words[i].DeleteLastCharacter();
         Assert.IsTrue(_trie.HasPrefix(prefix));
     }
 }
コード例 #2
0
        public void HasPrefix01()
        {
            bool hasPrefix1 = trie.HasPrefix("tes");

            Assert.IsTrue(hasPrefix1);
        }