Skip to content

Commit

Permalink
add test
Browse files Browse the repository at this point in the history
  • Loading branch information
Kirill Müller committed Sep 29, 2014
1 parent a612936 commit 6557e6a
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions tests/testthat/test-wrapFieldIfNecessary.R
Expand Up @@ -55,5 +55,11 @@ test_that("DESCRIPTION fields DO NOT get wrapped if no line exceeds the wrapping
}
)



test_that("Infinity threshold turns off wrapping", {
poem <- paste(sample(letters, 1000, TRUE), collapse = "")
expect_equal(
wrap_field_if_necessary("LongPoem", poem, wrap.threshold = Inf),
paste("LongPoem:", poem)
)
}
)

0 comments on commit 6557e6a

Please sign in to comment.