Skip to content

Commit 2f27dc7

Browse files
committed
be even more tolerant of rounding error
in "proper" browser export
1 parent e27fb71 commit 2f27dc7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/testthat/test-browser_export.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -292,8 +292,8 @@ test_that("proper doc-topics actually are", {
292292
expect_equal(Matrix(round(dt_prop, dg), sparse=TRUE), dtm,
293293
info="check that input and output matrices match"
294294
)
295-
expect_equal(rowSums(dtm), rep(1, nrow(dtm)), tolerance=10^-dg,
296-
info="check that matrix actually is proper"
295+
expect_equal(rowSums(dtm), rep(1, nrow(dtm)), tolerance=10^-(dg - 1),
296+
info="check that matrix is actually approximately proper"
297297
)
298298

299299
clear_files(out_files_non_zip)

0 commit comments

Comments
 (0)