tests/testthat/test-rectify.R

context("Rectify")

test_that("Rectification(flipping) is working correctly", {
    data <- c(1, 2, 3, 4, 5, 0, -1, -2, -3, -4, -5)
    expected <- c(1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5)
    expect_equal(rectify(data), expected)
})
adnaniazi/tailfindr documentation built on March 23, 2024, 7:07 a.m.