array: bring back reduce test

pull/3721/head
Alexander Medvednikov 2020-02-11 13:22:22 +01:00
parent 17212f816c
commit 0ec5680156
1 changed files with 0 additions and 2 deletions

View File

@ -414,7 +414,6 @@ fn sub(prev int, curr int) int {
} }
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)
c := a.reduce(sum, 5) c := a.reduce(sum, 5)
@ -427,7 +426,6 @@ fn test_reduce() {
g := e.reduce(sub, -1) g := e.reduce(sub, -1)
assert f == -6 assert f == -6
assert g == -7 assert g == -7
*/
} }
fn test_filter() { fn test_filter() {