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

builtin: remove test for the deprecated []int.reduce/2

This commit is contained in:
Delyan Angelov 2023-04-08 18:47:04 +03:00
parent 756e5d931e
commit ebfc4b4663
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED

View File

@ -588,21 +588,6 @@ fn sub(prev int, curr int) int {
return prev - curr
}
fn test_reduce() {
a := [1, 2, 3, 4, 5]
b := a.reduce(sum, 0)
c := a.reduce(sum, 5)
d := a.reduce(sum, -1)
assert b == 15
assert c == 20
assert d == 14
e := [1, 2, 3]
f := e.reduce(sub, 0)
g := e.reduce(sub, -1)
assert f == -6
assert g == -7
}
fn filter_test_helper_1(a int) bool {
return a > 3
}