File tree Expand file tree Collapse file tree 3 files changed +21
-21
lines changed Expand file tree Collapse file tree 3 files changed +21
-21
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ indent_style = space
77indent_size = 2
88insert_final_newline = true
99
10- [* .{c,cpp,h,hpp,gd} ]
10+ [* .{c,cpp,h,hpp,gd,lua } ]
1111indent_style = tab
1212indent_size = 4
1313
Original file line number Diff line number Diff line change 11function test_iteration (n )
2- local arr = Array ()
3- for i = 1 , n do
4- arr :append (i )
5- end
2+ local arr = Array ()
3+ for i = 1 , n do
4+ arr :append (i )
5+ end
66
7- local iteration_count = 0
8- for i , v in pairs (arr ) do
9- iteration_count = iteration_count + 1
10- end
11- assert (iteration_count == arr :size (), " Array pairs did not iterate over all " .. arr :size () .. " items" )
7+ local iteration_count = 0
8+ for i , v in pairs (arr ) do
9+ iteration_count = iteration_count + 1
10+ end
11+ assert (iteration_count == arr :size (), " Array pairs did not iterate over all " .. arr :size () .. " items" )
1212end
1313
1414for i = 0 , 5 do
15- test_iteration (i )
15+ test_iteration (i )
1616end
Original file line number Diff line number Diff line change 11function test_iteration (n )
2- local dict = Dictionary ()
3- for i = 1 , n do
4- dict [i ] = " Hello " .. i
5- end
2+ local dict = Dictionary ()
3+ for i = 1 , n do
4+ dict [i ] = " Hello " .. i
5+ end
66
7- local iteration_count = 0
8- for i , v in pairs (dict ) do
9- iteration_count = iteration_count + 1
10- end
11- assert (iteration_count == dict :size ())
7+ local iteration_count = 0
8+ for i , v in pairs (dict ) do
9+ iteration_count = iteration_count + 1
10+ end
11+ assert (iteration_count == dict :size ())
1212end
1313
1414for i = 0 , 5 do
15- test_iteration (i )
15+ test_iteration (i )
1616end
You can’t perform that action at this time.
0 commit comments