1
0
mirror of https://github.com/msberends/AMR.git synced 2025-07-18 10:43:16 +02:00

support A. species for as.mo, cleanup

This commit is contained in:
2018-11-24 20:25:09 +01:00
parent 63ba4b2980
commit 9ddf6dc530
14 changed files with 126 additions and 93 deletions

View File

@ -5,6 +5,9 @@ test_that("percentages works", {
expect_equal(percent(0.5), "50%")
expect_equal(percent(0.500, force_zero = TRUE), "50.0%")
expect_equal(percent(0.1234), "12.3%")
# round up 0.5
expect_equal(percent(0.0054), "0.5%")
expect_equal(percent(0.0055), "0.6%")
})
test_that("size format works", {