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:
parent
3d2afcf02e
commit
d110f0de74
@ -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]]]
|
||||
}
|
Loading…
Reference in New Issue
Block a user