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

make << work with appending arrays; PostgreSQL driver

This commit is contained in:
Alexander Medvednikov
2019-07-04 01:56:18 +02:00
parent fcf8909c75
commit 8f10e37370
11 changed files with 151 additions and 75 deletions

View File

@ -141,7 +141,7 @@ fn test_slice() {
fn test_push_many() {
mut a := [1, 2, 3]
b := [4, 5, 6]
a._push_many(b.data, b.len)
a << b
assert a.len == 6
assert a[0] == 1
assert a[3] == 4