mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
fix
This commit is contained in:

committed by
Alexander Medvednikov

parent
251e32948e
commit
09fb000e67
@@ -148,4 +148,10 @@ fn test_push_many() {
|
||||
assert a[5] == 6
|
||||
}
|
||||
|
||||
fn test_reverse() {
|
||||
mut a := [1, 2, 3, 4]
|
||||
mut b := ['test', 'array', 'reverse']
|
||||
|
||||
assert a.reverse() == [4, 3, 2, 1]
|
||||
assert b.reverse() == ['reverse', 'array', 'test']
|
||||
}
|
||||
|
Reference in New Issue
Block a user