1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

enable alpine/musl CI tests

This commit is contained in:
Delyan Angelov
2019-11-28 10:46:52 +02:00
committed by Alexander Medvednikov
parent 3b7466a13d
commit 7545ea709a
13 changed files with 137 additions and 65 deletions

View File

@ -46,7 +46,12 @@ fn test_erf() {
fn test_gamma() {
assert math.gamma(1) == 1
assert math.gamma(5) == 24
assert math.log_gamma(4.5) == math.log(math.gamma(4.5))
sval := '2.453737'
assert math.log_gamma(4.5).str() == sval
assert math.log(math.gamma(4.5)).str() == sval
assert math.abs( math.log_gamma(4.5) - math.log(math.gamma(4.5)) ) < 0.000001
// assert math.log_gamma(4.5) == math.log(math.gamma(4.5)) /* <-- fails on alpine/musl
}
fn test_mod() {