File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -194,9 +194,16 @@ func TestLookup(t *testing.T) {
194
194
if suggestions [0 ].Word != "ex𝐚mple" {
195
195
t .Fatal (fmt .Sprintf ("Expected ex𝐚mple, got %s" , suggestions [0 ].Word ))
196
196
}
197
+ }
198
+
199
+ func TestLookup_multipleDictionaries (t * testing.T ) {
200
+ s , err := newWithExample ()
201
+ if err != nil {
202
+ t .Fatal (err )
203
+ }
197
204
198
205
// Test adding a word to a different dictionary
199
- ok , err = s .AddEntry (Entry {
206
+ ok , err : = s .AddEntry (Entry {
200
207
Word : "française" ,
201
208
}, Name ("french" ))
202
209
if err != nil {
@@ -207,7 +214,7 @@ func TestLookup(t *testing.T) {
207
214
}
208
215
209
216
// Shouldn't get word from default dictionary
210
- suggestions , err = s .Lookup ("française" )
217
+ suggestions , err : = s .Lookup ("française" )
211
218
if err != nil {
212
219
t .Fatal (err )
213
220
}
You can’t perform that action at this time.
0 commit comments