Пример #1
0
        public void LoadTest()
        {
            var path = Path.Combine(Config.DataRootPath, _testFile);

            if (!File.Exists(path))
            {
                BuildTest();
            }

            DoubleArrayTrie <string> trie = new DoubleArrayTrie <string>();

            trie.Load(path, _mockData.Values.ToList());

            var res = trie.Get("测试key3");

            Assert.Equal(res, "测试value3");
        }