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

array: bring back left & right method tests

This commit is contained in:
joe-conigliaro 2019-10-27 20:05:19 +11:00 committed by Alexander Medvednikov
parent 6e0a789b6d
commit d81b0675f0

View File

@ -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