tests/testthat/test-mktrend.R

test_that("multiplication works", {
    x <- c(4.81, 4.17, 4.41, 3.59, 5.87, 3.83, 6.03, 4.89, 4.32, 4.69)
    r <- mkTrend_r(x, IsPlot = TRUE)
    r_cpp <- mkTrend(x, IsPlot = TRUE)

    expect_equal(r, r_cpp)
})
rpkgs/rtrend documentation built on Jan. 30, 2024, 10:38 a.m.