v2 / vlib / v / tests / array_insert_array_fixed_test.v
5 lines · 5 sloc · 91 bytes · fe6658d374ba577fec0e262a571acbaf3745483b
Raw
1fn test_main() {
2 mut arr := [][2]int{}
3 arr.insert(0, [1, 2]!)
4 assert arr == [[1, 2]!]
5}
6