diff --git a/vlib/v/tests/fixed_array_2_dims_init_test.v b/vlib/v/tests/fixed_array_2_dims_init_test.v index 6240dc7428722d..919e57cdf002ab 100644 --- a/vlib/v/tests/fixed_array_2_dims_init_test.v +++ b/vlib/v/tests/fixed_array_2_dims_init_test.v @@ -5,14 +5,18 @@ struct Uniforms { } fn r() [4]f32 { - return [4]f32{} + return [f32(1.1), 1.2, 1.3, 1.4]! } fn test_main() { - _ := Uniforms{ + v := Uniforms{ lights: [ r(), r(), ]! } + assert v.lights[0][0] == f32(1.1) + assert v.lights[0][1] == f32(1.2) + assert v.lights[0][2] == f32(1.3) + assert v.lights[0][3] == f32(1.4) }