v2 / vlib / v / tests / fns / cross_method_call_test.v
17 lines · 13 sloc · 296 bytes · 6488041a749df9762348d019c4223908c476f2e2
Raw
1fn test_main() {
2 mut l_map := map[int]bool{}
3 mut r_map := map[int]bool{}
4
5 l_map[0] = false
6 l_map[1] = false
7
8 r_map[0] = true
9 r_map[1] = true
10
11 l_map, r_map = r_map.move(), l_map.move()
12
13 assert l_map[0] == true
14 assert l_map[0] == true
15 assert r_map[0] == false
16 assert r_map[0] == false
17}
18