Skip to content

Commit

Permalink
simplify multiple spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
pachadotdev committed Apr 29, 2024
1 parent e2db3aa commit 5fd0935
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/testthat/test_extract_text.R
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ test_that("Text can be extracted from the whole document", {
txt <- extract_text(sf, encoding = "UTF-8")
txt <- gsub("[\r\n]", " ", txt)
txt <- gsub("\\s+$", "", txt)
txt <- gsub("\\s+", " ", txt)
expect_identical(txt, "42 is the number from which the meaning of life, the universe, and everything can be derived. 42 is the number from which the meaning of life, the universe, and everything can be derived.")
})

Expand Down

0 comments on commit 5fd0935

Please sign in to comment.