Skip to content

Commit

Permalink
Update test
Browse files Browse the repository at this point in the history
  • Loading branch information
jtibshirani committed May 28, 2024
1 parent c22833f commit 16796d2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions build/scoring_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ func TestBM25(t *testing.T) {
content: exampleJava,
language: "Java",
// bm25-score:1.69 (sum-tf: 7.00, length-ratio: 2.00)
wantScore: 1.69,
wantScore: 1.82,
}, {
// Matches only on content
fileName: "example.java",
Expand All @@ -99,15 +99,15 @@ func TestBM25(t *testing.T) {
content: exampleJava,
language: "Java",
// bm25-score:1.07 (sum-tf: 2.00, length-ratio: 2.00)
wantScore: 1.07,
wantScore: 1.55,
},
{
// Matches only on filename, and content is missing
fileName: "a/b/c/config.go",
query: &query.Substring{Pattern: "config.go"},
language: "Go",
// bm25-score:1.91 (sum-tf: 2.00, length-ratio: 0.00)
wantScore: 1.91,
wantScore: 2.08,
},
}

Expand Down

0 comments on commit 16796d2

Please sign in to comment.