Skip to content

Commit

Permalink
fix tests and correct misspellings
Browse files Browse the repository at this point in the history
  • Loading branch information
wamuir authored and mish15 committed Jul 3, 2020
1 parent 243c923 commit a913c98
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
sudo: false
language: go
go:
- 1.4
- 1.5
- 1.13
- 1.14
- tip
notifications:
email:
- [email protected]
- [email protected]
4 changes: 2 additions & 2 deletions fuzzy_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ func TestAutocomplete(t *testing.T) {
model.Train(sampleEnglish)
out, err := model.Autocomplete("accoun")
if err != nil {
t.Errorf("Auocomplete() returned and error: ", err)
t.Errorf("Autocomplete() returned an error: %s", err)
}
expected := map[string]bool{
"account": true,
Expand Down Expand Up @@ -375,7 +375,7 @@ func TestAutocompleteFromQueries(t *testing.T) {

out, err := model.Autocomplete("eve")
if err != nil {
t.Errorf("Auocomplete() returned and error: ", err)
t.Errorf("Autocomplete() returned an error: %s", err)
}
if out[0] != "everest" {
t.Errorf("Autocomplete failed to account for query training")
Expand Down

0 comments on commit a913c98

Please sign in to comment.