From ebfc4b46636a5229c6ed08062756495d97aaee81 Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Sat, 8 Apr 2023 18:47:04 +0300 Subject: [PATCH] builtin: remove test for the deprecated []int.reduce/2 --- vlib/builtin/array_test.v | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/vlib/builtin/array_test.v b/vlib/builtin/array_test.v index 9274cfa539..de7491f599 100644 --- a/vlib/builtin/array_test.v +++ b/vlib/builtin/array_test.v @@ -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 }