builtin: uncomment already working test functions in array_test.v
parent
d7d9305d96
commit
be3702dcb7
|
@ -330,8 +330,6 @@ fn modify(mut numbers []int) {
|
||||||
}
|
}
|
||||||
|
|
||||||
fn test_mut_slice() {
|
fn test_mut_slice() {
|
||||||
/*
|
|
||||||
QTODO
|
|
||||||
mut n := [1, 2, 3]
|
mut n := [1, 2, 3]
|
||||||
// modify(mut n)
|
// modify(mut n)
|
||||||
modify(mut n[..2])
|
modify(mut n[..2])
|
||||||
|
@ -339,7 +337,6 @@ fn test_mut_slice() {
|
||||||
modify(mut n[2..])
|
modify(mut n[2..])
|
||||||
assert n[2] == 777
|
assert n[2] == 777
|
||||||
println(n)
|
println(n)
|
||||||
*/
|
|
||||||
}
|
}
|
||||||
|
|
||||||
fn double_up(mut a []int) {
|
fn double_up(mut a []int) {
|
||||||
|
@ -544,7 +541,6 @@ fn sub(prev int, curr int) int {
|
||||||
return prev - curr
|
return prev - curr
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
fn test_reduce() {
|
fn test_reduce() {
|
||||||
a := [1, 2, 3, 4, 5]
|
a := [1, 2, 3, 4, 5]
|
||||||
b := a.reduce(sum, 0)
|
b := a.reduce(sum, 0)
|
||||||
|
@ -559,7 +555,7 @@ fn test_reduce() {
|
||||||
assert f == -6
|
assert f == -6
|
||||||
assert g == -7
|
assert g == -7
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
fn filter_test_helper_1(a int) bool {
|
fn filter_test_helper_1(a int) bool {
|
||||||
return a > 3
|
return a > 3
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue