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

fix tests

This commit is contained in:
Alexander Medvednikov
2019-07-25 14:06:26 +02:00
parent 2ad0d0200d
commit ceb0139329
3 changed files with 4 additions and 4 deletions

View File

@ -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)
}