mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
fix tests
This commit is contained in:
@ -2,7 +2,7 @@ import math.stats as stats
|
||||
|
||||
fn test_freq() {
|
||||
// Tests were also verified on Wolfram Alpha
|
||||
mut data := [f64(10.0),f64(10.0),f64(5.9),f64(2.7)]
|
||||
data := [f64(10.0),f64(10.0),f64(5.9),f64(2.7)]
|
||||
mut o := stats.freq(data,10.0)
|
||||
assert o == 2
|
||||
o = stats.freq(data,2.7)
|
||||
@ -256,4 +256,4 @@ fn test_passing_empty() {
|
||||
assert stats.min(data) == f64(0)
|
||||
assert stats.max(data) == f64(0)
|
||||
assert stats.range(data) == f64(0)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user