tests/testthat/test-hedge.R

test_that('hedge', {
    expect_that(hedge('-')(c(-Inf, -1, 0, 1, 10, Inf, NA, NaN)),
                equals(c(0, 0, 0, 1, 1, 1, NA, NaN)))
})

Try the lfl package in your browser

Any scripts or data that you put into this service are public.

lfl documentation built on Oct. 30, 2024, 9:27 a.m.