-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtest.output
More file actions
224 lines (192 loc) · 10.7 KB
/
test.output
File metadata and controls
224 lines (192 loc) · 10.7 KB
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
EEEEEFEFF.FFFF.FFFFF..F..
======================================================================
ERROR: testGetBestChoice2 (__main__.ProcessTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/Jack/Documents/EECS481/hw3/fuzzywuzzy.py", line 435, in extractWithoutOrder
for key, choice in choices.items():
AttributeError: 'list' object has no attribute 'items'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "publictest-half.py", line 226, in testGetBestChoice2
best = fuzzywuzzy.extractOne(query, self.baseball_strings)
File "/Users/Jack/Documents/EECS481/hw3/fuzzywuzzy.py", line 552, in extractOne
return max(best_list, key=lambda i: i[1])
File "/Users/Jack/Documents/EECS481/hw3/fuzzywuzzy.py", line 443, in extractWithoutOrder
score = scorer(processed_query, processed)
UnboundLocalError: local variable 'processed' referenced before assignment
======================================================================
ERROR: testGetBestChoice4 (__main__.ProcessTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/Jack/Documents/EECS481/hw3/fuzzywuzzy.py", line 435, in extractWithoutOrder
for key, choice in choices.items():
AttributeError: 'list' object has no attribute 'items'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "publictest-half.py", line 231, in testGetBestChoice4
best = fuzzywuzzy.extractOne(query, self.baseball_strings)
File "/Users/Jack/Documents/EECS481/hw3/fuzzywuzzy.py", line 552, in extractOne
return max(best_list, key=lambda i: i[1])
File "/Users/Jack/Documents/EECS481/hw3/fuzzywuzzy.py", line 443, in extractWithoutOrder
score = scorer(processed_query, processed)
UnboundLocalError: local variable 'processed' referenced before assignment
======================================================================
ERROR: testNullStrings (__main__.ProcessTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/Jack/Documents/EECS481/hw3/fuzzywuzzy.py", line 435, in extractWithoutOrder
for key, choice in choices.items():
AttributeError: 'list' object has no attribute 'items'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "publictest-half.py", line 293, in testNullStrings
best = fuzzywuzzy.extractOne(query, choices)
File "/Users/Jack/Documents/EECS481/hw3/fuzzywuzzy.py", line 552, in extractOne
return max(best_list, key=lambda i: i[1])
File "/Users/Jack/Documents/EECS481/hw3/fuzzywuzzy.py", line 443, in extractWithoutOrder
score = scorer(processed_query, processed)
UnboundLocalError: local variable 'processed' referenced before assignment
======================================================================
ERROR: testWithCutoff2 (__main__.ProcessTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/Jack/Documents/EECS481/hw3/fuzzywuzzy.py", line 435, in extractWithoutOrder
for key, choice in choices.items():
AttributeError: 'list' object has no attribute 'items'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "publictest-half.py", line 277, in testWithCutoff2
res = fuzzywuzzy.extractOne(query, choices, score_cutoff=100)
File "/Users/Jack/Documents/EECS481/hw3/fuzzywuzzy.py", line 552, in extractOne
return max(best_list, key=lambda i: i[1])
File "/Users/Jack/Documents/EECS481/hw3/fuzzywuzzy.py", line 443, in extractWithoutOrder
score = scorer(processed_query, processed)
UnboundLocalError: local variable 'processed' referenced before assignment
======================================================================
ERROR: testWithScorer (__main__.ProcessTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/Jack/Documents/EECS481/hw3/fuzzywuzzy.py", line 435, in extractWithoutOrder
for key, choice in choices.items():
AttributeError: 'list' object has no attribute 'items'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "publictest-half.py", line 256, in testWithScorer
best = fuzzywuzzy.extractOne(query, choices)
File "/Users/Jack/Documents/EECS481/hw3/fuzzywuzzy.py", line 552, in extractOne
return max(best_list, key=lambda i: i[1])
File "/Users/Jack/Documents/EECS481/hw3/fuzzywuzzy.py", line 443, in extractWithoutOrder
score = scorer(processed_query, processed)
UnboundLocalError: local variable 'processed' referenced before assignment
======================================================================
ERROR: test_simplematch (__main__.ProcessTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/Jack/Documents/EECS481/hw3/fuzzywuzzy.py", line 435, in extractWithoutOrder
for key, choice in choices.items():
AttributeError: 'list' object has no attribute 'items'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "publictest-half.py", line 315, in test_simplematch
result = fuzzywuzzy.extractOne(basic_string, match_strings, scorer=fuzzywuzzy.ratio)
File "/Users/Jack/Documents/EECS481/hw3/fuzzywuzzy.py", line 552, in extractOne
return max(best_list, key=lambda i: i[1])
File "/Users/Jack/Documents/EECS481/hw3/fuzzywuzzy.py", line 443, in extractWithoutOrder
score = scorer(processed_query, processed)
UnboundLocalError: local variable 'processed' referenced before assignment
======================================================================
FAIL: test_dict_like_extract (__main__.ProcessTest)
We should be able to use a dict-like object for choices, not only a
----------------------------------------------------------------------
Traceback (most recent call last):
File "publictest-half.py", line 307, in test_dict_like_extract
self.assertTrue(len(result) > 0)
AssertionError: False is not true
======================================================================
FAIL: testCaseInsensitive (__main__.RatioTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "publictest-half.py", line 99, in testCaseInsensitive
self.assertEqual(fuzzywuzzy.ratio(fuzzywuzzy.full_process(self.s1), fuzzywuzzy.full_process(self.s2)), 100)
AssertionError: 0 != 100
======================================================================
FAIL: testIssueSeven (__main__.RatioTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "publictest-half.py", line 129, in testIssueSeven
self.assertTrue(fuzzywuzzy.partial_ratio(s1, s2) > 75)
AssertionError: False is not true
======================================================================
FAIL: testQRatioForceAscii (__main__.RatioTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "publictest-half.py", line 162, in testQRatioForceAscii
self.assertEqual(score, 100)
AssertionError: 0 != 100
======================================================================
FAIL: testQRatioUnicode (__main__.RatioTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "publictest-half.py", line 121, in testQRatioUnicode
self.assertEqual(fuzzywuzzy.WRatio(unicode(self.s1), unicode(self.s1a)), 100)
AssertionError: 0 != 100
======================================================================
FAIL: testQRatioUnicodeString (__main__.RatioTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "publictest-half.py", line 149, in testQRatioUnicodeString
self.assertNotEqual(0, score)
AssertionError: 0 == 0
======================================================================
FAIL: testQuickRatioEqual (__main__.RatioTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "publictest-half.py", line 108, in testQuickRatioEqual
self.assertEqual(fuzzywuzzy.QRatio(self.s1, self.s1a), 100)
AssertionError: 0 != 100
======================================================================
FAIL: testTokenSetRatio (__main__.RatioTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "publictest-half.py", line 105, in testTokenSetRatio
self.assertEqual(fuzzywuzzy.token_set_ratio(self.s4, self.s5), 100)
AssertionError: 0 != 100
======================================================================
FAIL: testTokenSortForceAscii (__main__.RatioTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "publictest-half.py", line 172, in testTokenSortForceAscii
self.assertEqual(score, 100)
AssertionError: 0 != 100
======================================================================
FAIL: testTokenSortRatio (__main__.RatioTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "publictest-half.py", line 102, in testTokenSortRatio
self.assertEqual(fuzzywuzzy.token_sort_ratio(self.s1, self.s1a), 100)
AssertionError: 0 != 100
======================================================================
FAIL: testWRatioCaseInsensitive (__main__.RatioTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "publictest-half.py", line 114, in testWRatioCaseInsensitive
self.assertEqual(fuzzywuzzy.WRatio(self.s1, self.s2), 100)
AssertionError: 0 != 100
======================================================================
FAIL: testWRatioMisorderedMatch (__main__.RatioTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "publictest-half.py", line 118, in testWRatioMisorderedMatch
self.assertEqual(fuzzywuzzy.WRatio(self.s4, self.s5), 95)
AssertionError: 0 != 95
======================================================================
FAIL: testCheckEmptyString (__main__.ValidatorTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "publictest-half.py", line 190, in testCheckEmptyString
self.assertEqual(decorated_func(*i), 0)
AssertionError: (('Some', ''), {}) != 0
----------------------------------------------------------------------
Ran 25 tests in 0.009s
FAILED (failures=13, errors=6)