From be3702dcb7d16418280e9c2fe33c4f393c354db0 Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Mon, 14 Jun 2021 10:13:59 +0300 Subject: [PATCH] builtin: uncomment already working test functions in array_test.v --- vlib/builtin/array_test.v | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/vlib/builtin/array_test.v b/vlib/builtin/array_test.v index ad84541a46..1f9983dfbd 100644 --- a/vlib/builtin/array_test.v +++ b/vlib/builtin/array_test.v @@ -330,16 +330,13 @@ fn modify(mut numbers []int) { } fn test_mut_slice() { - /* - QTODO mut n := [1, 2, 3] - //modify(mut n) + // modify(mut n) modify(mut n[..2]) assert n[0] == 777 modify(mut n[2..]) assert n[2] == 777 println(n) - */ } fn double_up(mut a []int) { @@ -544,7 +541,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) @@ -559,7 +555,7 @@ fn test_reduce() { assert f == -6 assert g == -7 } -*/ + fn filter_test_helper_1(a int) bool { return a > 3 }