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))
tesselle/arkhe documentation built on Feb. 22, 2024, 8:18 p.m.