mirror of
https://github.com/vlang/v.git
synced 2025-09-16 07:52:32 +03:00
fix
This commit is contained in:
parent
251e32948e
commit
09fb000e67
2 changed files with 19 additions and 0 deletions
|
@ -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']
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue