Skip to content

Commit

Permalink
Fix the test error on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
taku910 committed Apr 28, 2023
1 parent bb0b610 commit 25b64fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/unigram_model_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -606,7 +606,7 @@ TEST(UnigramModelTest, SampleEncodeAndScoreTest) {
EXPECT_NEAR(it.second, 1.0 * counts[it.first] / (kTrials * num_samples),
0.02);
// The expectation is quite loose, use a higher tolerance
EXPECT_NEAR(1.0, scores[it.first] / kTrials, 0.20);
EXPECT_NEAR(1.0, scores[it.first] / kTrials, 0.30);
}
}
}
Expand Down

0 comments on commit 25b64fc

Please sign in to comment.