This commit is contained in:
Joe Conigliaro 2019-07-18 02:17:07 +10:00 committed by Alexander Medvednikov
parent 251e32948e
commit 09fb000e67
2 changed files with 19 additions and 0 deletions

View file

@ -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']
}