コード例 #1
0
        public void PrefixTree_ExactMatchWorksWithWrongCase()
        {
            PrefixTree tree = new PrefixTree();
            tree.Insert("PATRIK");

            Assert.IsFalse(tree.IsExactMatch("pat"));
            Assert.IsTrue(tree.IsExactMatch("patrik"));
        }
コード例 #2
0
        public void PrefixTree_ExactMatch()
        {
            PrefixTree tree = new PrefixTree();
            tree.Insert("PATRIK");

            Assert.IsFalse(tree.IsExactMatch("PAT"));
            Assert.IsTrue(tree.IsExactMatch("PATRIK"));
        }