tests: add a regression test for 3d2afcf

pull/8686/head
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
1 changed files with 9 additions and 0 deletions

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