From 13b14ecead9fc0bf1b4183e7901f686f1947ed31 Mon Sep 17 00:00:00 2001 From: Lukas Neubert Date: Sat, 26 Dec 2020 19:21:52 +0100 Subject: [PATCH] test-cleancode: add the `arrays` module too (#7583) --- cmd/tools/vtest-cleancode.v | 1 + vlib/arrays/arrays_test.v | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/tools/vtest-cleancode.v b/cmd/tools/vtest-cleancode.v index 03442bc17c..a4304213e7 100644 --- a/cmd/tools/vtest-cleancode.v +++ b/cmd/tools/vtest-cleancode.v @@ -20,6 +20,7 @@ const ( vfmt_verify_list = [ 'cmd/tools/vdoc.v', 'cmd/v/v.v', + 'vlib/arrays', 'vlib/builtin/array.v', 'vlib/builtin/array_test.v', 'vlib/builtin/map.v', diff --git a/vlib/arrays/arrays_test.v b/vlib/arrays/arrays_test.v index df7f5f51d4..aa0fd059af 100644 --- a/vlib/arrays/arrays_test.v +++ b/vlib/arrays/arrays_test.v @@ -91,7 +91,6 @@ fn test_fixed_array_assignment() { c = a assert c[0] == a[0] assert c[1] == a[1] - d := [3]int{init: 333} for val in d { assert val == 333 @@ -100,4 +99,4 @@ fn test_fixed_array_assignment() { for val in e { assert val == 'vlang' } -} \ No newline at end of file +}