tests/testthat/test_replaceNAwithZero.R

context("replaceNAwithZero tests")
test_that("Test replace NAs with Zeroes", {
  y <- c(1, NA, 3)
  x <- replaceNAwithZero(y)
  expect_equal(x, c(1, 0, 3))
})
HoustonUseRs/hrugrhelpr documentation built on May 7, 2019, 4:02 a.m.