-
Notifications
You must be signed in to change notification settings - Fork 0
/
output.out
67 lines (43 loc) · 1.94 KB
/
output.out
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
//TESTING ADDING WORDS (addWord, insert)//
** Test #1: Adding first word to dictionary...
addWord returned true.
** Test #2: Adding two more words and testing size...
Size is 3.
** Test #3: Adding more words to dictionary trie (testing size after insertions)...
Dict size is 24.
** Test #4: Adding duplicate word...
Adding duplicate word returned false.
** Test #5: Checking size after try to add duplicate word...
Dict size is 24.
//TESTING FOR WORDS IN/OUT OF DICTIONARY (isWord)//
** Test #6: Checking empty string...
Empty string in dictionary: false.
** Test #7: Checking for word in dictionary...
'doggoes' in dictionary: true.
** Test #8: Testing word only missing last letter...
'downhil' in dictionary: false.
** Test #9: Testing word with one extra letter...
'downhille' in dictionary: false.
** Test #10: Testing for more words in dictionary...
'test' in dictionary: true. 'testcases' in dictionary: true. 'testone' in dictionary: true.
** Test #11: Testing word with capital letters...
'TeSt' in dictionary: true.
//TESTING AUTO COMPLETE FUNCTIONALITY (predictCompletions)//
** Test #12: 3 completions requested...
Autocomplete returned the following: dog, doge, dogg,
** Test #13: Testing size of list...
predictCompletions returned 3 elements.
** Test #14: 6 completions requested, 0 expected...
predictCompletions found 0 words.
** Test #15: 10 completions requested, 6 expected...
predictCompletions found 6 elements.
** Test #16: Testing for correctness of 6 words...
Words returned by predictCompletions: dogg, doggo, doggie, doggos, doggies, doggoes,
** Test #17: 7 completions requested (test for size)...
predictCompletions returned 7 elements.
** Test #18: Testing if list is sorted from shortest to longest...
Check above output.
** Test #19: Testing if list contains correct shorter words...
Check above output.
** Test #20: Testing for remaining words...
Out of 'testone', 'testine', 'testell', and 'testing', 2 words were found.