1
0
mirror of https://github.com/janet-lang/janet synced 2025-10-21 18:57:41 +00:00

Add math/gcd and math/lcm to the core.

This commit is contained in:
Calvin Rose
2021-10-24 11:40:31 -05:00
parent eb4595158d
commit 06aa0a124d
2 changed files with 41 additions and 0 deletions

View File

@@ -167,4 +167,7 @@
(assert (= (get-in t [:side :note] "dflt") "dflt")
"get-in with false value and default")
(assert (= (math/gcd 462 1071) 21) "math/gcd 1")
(assert (= (math/lcm 462 1071) 23562) "math/lcm 1")
(end-suite)