From d81b0675f0d31f4c33921ca968b128a108c55b39 Mon Sep 17 00:00:00 2001 From: joe-conigliaro Date: Sun, 27 Oct 2019 20:05:19 +1100 Subject: [PATCH] array: bring back left & right method tests --- vlib/builtin/array_test.v | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vlib/builtin/array_test.v b/vlib/builtin/array_test.v index 13838cb5f4..51b864597d 100644 --- a/vlib/builtin/array_test.v +++ b/vlib/builtin/array_test.v @@ -116,7 +116,7 @@ fn test_repeat() { fn test_right() { a := [1, 2, 3, 4] - b := a[1..] + b := a.right(1) c := a[1..a.len] d := a[1..] assert b[0] == 2 @@ -146,7 +146,7 @@ fn test_right_with_n_bigger_than_array_size() { fn test_left() { a := [1, 2, 3] - b := a[..2] + b := a.left(2) c := a[0..2] d := a[..2] assert b[0] == 1