Skip to content

Commit

Permalink
fix tests for ubuntu
Browse files Browse the repository at this point in the history
  • Loading branch information
montesmariana committed May 19, 2024
1 parent 34cadc0 commit 2f9ee0d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/testthat/test-word_utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ test_that("long examples are properly folded", {
)
lines <- align_word(long_gloss)
expect_length(lines, 4)
expect_lt(abs(width_with_spaces(lines[[1]]) - width_with_spaces(lines[[2]])),
expect_lte(abs(width_with_spaces(lines[[1]]) - width_with_spaces(lines[[2]])),
systemfonts::string_width(" ")*2)
expect_lt(abs(width_with_spaces(lines[[3]]) - width_with_spaces(lines[[4]])),
expect_lte(abs(width_with_spaces(lines[[3]]) - width_with_spaces(lines[[4]])),
systemfonts::string_width(" "))
for (line in lines) {
expect_lte(width_with_spaces(line), 1332)
Expand Down

0 comments on commit 2f9ee0d

Please sign in to comment.