v2 / vlib / v / tests / structs / struct_empty_auto_eq_test.v
17 lines · 14 sloc · 195 bytes · a186e445c73d3005220c440df35cc0c47d9cec12
Raw
1module main
2
3struct Example {}
4
5struct Components {
6 example map[string]Example
7}
8
9fn test_main() {
10 a := Components{}
11 b := Components{}
12 if a == b {
13 assert true
14 } else {
15 assert false
16 }
17}
18