Skip to content

Commit

Permalink
Fix spellfix test
Browse files Browse the repository at this point in the history
  • Loading branch information
FluxCapacitor2 committed Jan 5, 2025
1 parent 6f011b5 commit 7a40fd3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/database/db_sqlite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -319,12 +319,12 @@ func TestSpellfix(t *testing.T) {
t.Fatalf("failed to create spellfix index: %v\n", err)
}

str, err := db.Spellfix(context.Background(), "Thg quicg browg fog jumpeg oveg thg lazg dog")
str, err := db.Spellfix(context.Background(), "The quicg browg fog jumpeg ovrr the lazg dog")
if err != nil {
t.Fatalf("error during spellfix: %v\n", err)
}

if str != "quick brown fox jumped lazy dog" {
t.Fatalf("unexpected spellfix return: expected 'quick brown fox jumped lazy dog', got '%v'\n", str)
if str != "the quick brown fox jumped over the lazy dog" {
t.Fatalf("unexpected spellfix return: expected 'the quick brown fox jumped over the lazy dog', got '%v'\n", str)
}
}

0 comments on commit 7a40fd3

Please sign in to comment.