tests/testthat/test-normalize.R

test_that("Normalize doesn't work, returns wrong min value", {
  v <- c(1:100)
  expect_equal(0, min(normalize(v)))
})

test_that("Normalize doesn't work, returns wrong max value", {
  v <- c(1:100)
  expect_equal(1, max(normalize(v)))
})
dominikjung42/dstools documentation built on June 16, 2024, 2:40 a.m.