tests/testthat/test-leap_years.R

test_that("leap year calculation is accurate", {
    expect_equal(sh_year_is_leap(jdate(jalali_leap_years$jalali_date)), jalali_leap_years$leap_year)
})

Try the shide package in your browser

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

shide documentation built on Sept. 11, 2024, 6:37 p.m.