1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00
v/vlib/builtin/byte_test.v
Alexander Medvednikov 20a885ff1d []byte.clone()
2019-07-25 18:07:25 +02:00

9 lines
136 B
Go

fn test_clone() {
a := [byte(0), 1, 2]
b := a.clone()
assert b.len == 3
assert b[0] == 0
assert b[1] == 1
assert b[2] == 2
}