mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
This commit is contained in:
@@ -408,6 +408,16 @@ fn test_abs() {
|
||||
}
|
||||
}
|
||||
|
||||
fn test_abs_zero() {
|
||||
ret1 := abs(0)
|
||||
println(ret1)
|
||||
assert '$ret1' == '0'
|
||||
|
||||
ret2 := abs(0.0)
|
||||
println(ret2)
|
||||
assert '$ret2' == '0'
|
||||
}
|
||||
|
||||
fn test_floor() {
|
||||
for i := 0; i < math.vf_.len; i++ {
|
||||
f := floor(math.vf_[i])
|
||||
|
||||
Reference in New Issue
Block a user