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))
nfrerebeau/codex documentation built on May 6, 2024, 9:23 a.m.