public void EmptyTrie() { var trie = new NumericTrie<string, string>(); var get = trie.Values("43").SingleOrDefault(); Assert.Null(get); }
public void EmptyTrie() { var trie = new NumericTrie <string, string>(); var get = trie.Values("43").SingleOrDefault(); Assert.Null(get); }
public void TrieOnce() { var trie = new NumericTrie<string, string>(); trie.Add("123", "hello"); var get = trie.Values("123").Single(); Assert.Equal("hello", get); }
public void NoKey() { var trie = new NumericTrie<string, string>(); trie.Add("123", "hello"); var get = trie.Values("43").SingleOrDefault(); Assert.Null(get); }
public void TrieOnce() { var trie = new NumericTrie <string, string>(); trie.Add("123", "hello"); var get = trie.Values("123").Single(); Assert.Equal("hello", get); }
public void NoKey() { var trie = new NumericTrie <string, string>(); trie.Add("123", "hello"); var get = trie.Values("43").SingleOrDefault(); Assert.Null(get); }
public void Twice() { var trie = new NumericTrie<string, string>(); trie.Add("123", "hello"); trie.Add("123","bye"); var get = trie.Values("123"); Assert.Equal("bye", get.First()); Assert.Equal("hello", get.Last()); }
public void TwiceOnTrieCorrect() { var trie = new NumericTrie <string, string>(); trie.Add("123", "hello"); trie.Add("123", "bye"); var get = trie.Values("1234"); Assert.Equal(new[] { "bye", "hello" }, get.ToArray()); }
public void TwiceOnNearTrieCorrect() { var trie = new NumericTrie <string, string>(); trie.Add("1233", "hello"); trie.Add("123", "bye"); var get = trie.Values("1234"); Assert.Equal("bye", get.Single()); }
public void TwiceOnNearTrieIncorrect() { var trie = new NumericTrie <string, string>(); trie.Add("1233", "hello"); trie.Add("123", "bye"); var get = trie.Values("12"); Assert.True(!get.Any()); }
public void Twice() { var trie = new NumericTrie <string, string>(); trie.Add("123", "hello"); trie.Add("123", "bye"); var get = trie.Values("123"); Assert.Equal("bye", get.First()); Assert.Equal("hello", get.Last()); }
public void TwiceOnNearTrieIncorrect() { var trie = new NumericTrie<string, string>(); trie.Add("1233", "hello"); trie.Add("123", "bye"); var get = trie.Values("12"); Assert.True(!get.Any()); }
public void TwiceOnNearTrieCorrect() { var trie = new NumericTrie<string, string>(); trie.Add("1233", "hello"); trie.Add("123", "bye"); var get = trie.Values("1234"); Assert.Equal("bye", get.Single()); }
public void TwiceOnTrieCorrect() { var trie = new NumericTrie<string, string>(); trie.Add("123", "hello"); trie.Add("123", "bye"); var get = trie.Values("1234"); Assert.Equal(new[]{"bye","hello"}, get.ToArray()); }