Skip to content

Commit 4fc110c

Browse files
committed
minor problem in test
1 parent 2606d32 commit 4fc110c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/testthat/test-tr_causal.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ test_that("can handle extra parameters", {
9797
word_1_prob <- causal_next_tokens_tbl("<|endoftext|>")
9898
prob1 <- word_1_prob[token == "This"]$lp
9999
names(prob1) <- "This"
100-
expect_equal(probs[1], prob1)
100+
expect_equal(probs[1], prob1, tolerance = 0.0001)
101101

102102
probs_F <- causal_lp(x = c("This", "is", "it"), add_special_tokens = FALSE)
103103
expect_true(is.na(probs_F[1]))

0 commit comments

Comments
 (0)