mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
array: bring back reduce test
This commit is contained in:
parent
17212f816c
commit
0ec5680156
@ -414,7 +414,6 @@ fn sub(prev int, curr int) int {
|
||||
}
|
||||
|
||||
fn test_reduce() {
|
||||
/*
|
||||
a := [1, 2, 3, 4, 5]
|
||||
b := a.reduce(sum, 0)
|
||||
c := a.reduce(sum, 5)
|
||||
@ -427,7 +426,6 @@ fn test_reduce() {
|
||||
g := e.reduce(sub, -1)
|
||||
assert f == -6
|
||||
assert g == -7
|
||||
*/
|
||||
}
|
||||
|
||||
fn test_filter() {
|
||||
|
Loading…
Reference in New Issue
Block a user