inst/tinytest/test_mathematics.R

# Greatest Common Divisor ======================================================
expect_equal(math_gcd(c(54, 48), c(24, 18)), c(6, 6))

# Least Common Multiple ======================================================
expect_equal(math_lcm(c(12, 4), c(18, 3)), c(36, 12))

Try the arkhe package in your browser

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

arkhe documentation built on Nov. 17, 2023, 5:09 p.m.