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

array: fix reverse()

This commit is contained in:
Alexander Medvednikov
2020-03-18 18:54:08 +01:00
parent f41cf7465b
commit ca0bae0fcd
2 changed files with 2 additions and 1 deletions

View File

@@ -259,6 +259,7 @@ fn test_reverse() {
a := [1, 2, 3, 4]
b := ['test', 'array', 'reverse']
c := a.reverse()
println(c)
d := b.reverse()
for i, _ in c {
assert c[i] == a[a.len - i - 1]