tests/testthat/test-ggplot2.R

context("ggplot2.R")

test_that("scientific_10()", {
  answer <- c("1 %*% 10^-2", "1 %*% 10^-1", "1 %*% 10^0", "1 %*% 10^1", "1 %*% 10^2")
  expect_equal(answer, as.character(scientific_10(10^(-2:2))))
})
teramonagi/gigamonagi documentation built on May 31, 2019, 8:37 a.m.