1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00
v/vlib/math/math_test.v
2019-06-29 17:24:55 +02:00

10 lines
154 B
Go

import math
fn test_gcd_and_lcm() {
assert math.gcd(6, 9) == 3
assert math.gcd(6, -9) == 3
assert math.lcm(2, 3) == 6
assert math.lcm(-2, 3) == 6
}