We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 99b00ed commit e3bc140Copy full SHA for e3bc140
src/test/java/com/fishercoder/_208Test.java
@@ -0,0 +1,22 @@
1
+package com.fishercoder;
2
+
3
+import com.fishercoder.solutions._208;
4
+import org.junit.Test;
5
6
+import static junit.framework.TestCase.assertEquals;
7
8
+public class _208Test {
9
+ private static _208.Solution1.Trie trie;
10
11
+ @Test
12
+ public void test1() {
13
+ trie = new _208.Solution1.Trie();
14
+ trie.insert("apple");
15
+ assertEquals(true, trie.search("apple"));
16
+ assertEquals(false, trie.search("app"));
17
+ assertEquals(true, trie.startsWith("app"));
18
+ trie.insert("app");
19
+ assertEquals(true, trie.search("app"));
20
+ }
21
22
+}
0 commit comments