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

tests: add a regression test for 3d2afcf

This commit is contained in:
Delyan Angelov 2021-02-09 14:11:09 +02:00
parent 3d2afcf02e
commit d110f0de74
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED

View File

@ -0,0 +1,9 @@
fn create_random_frames(amount int, pixels int) [][][]int {
return [[[amount, pixels]]]
}
fn test_go_can_be_used_with_functions_returning_arrays() {
x := go create_random_frames(2, 2)
res := x.wait()
assert res == [[[2, 2]]]
}