Skip to content

Commit 1014c41

Browse files
committed
Add context to some loops in tests
1 parent 898d462 commit 1014c41

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

test/library/gui/dwarfmode.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ function test.enterSidebarMode()
6868
-- verify that all supported modes lead where we say they'll go
6969
for k,v in pairs(guidm.SIDEBAR_MODE_KEYS) do
7070
guidm.enterSidebarMode(k)
71-
expect.eq(k, df.global.ui.main.mode)
71+
expect.eq(k, df.global.ui.main.mode, df.ui_sidebar_mode[k])
7272
end
7373
-- end test back in default so the test harness doesn't have to autocorrect
7474
guidm.enterSidebarMode(df.ui_sidebar_mode.Default)

test/structures/other_vectors.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ end
1212

1313
function test.index_id()
1414
for i in ipairs(df.units_other_id) do
15-
expect.eq(df.global.world.units.other[i]._kind, 'container')
15+
expect.eq(df.global.world.units.other[i]._kind, 'container', df.units_other_id[i])
1616
end
1717
end
1818

test/structures/primitive_refs.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ function test.index_write_multi()
7070
x[i] = i * i
7171
end
7272
for i = 0, len - 1 do
73-
expect.eq(x[i], i * i)
73+
expect.eq(x[i], i * i, i)
7474
end
7575
end)
7676
end

0 commit comments

Comments
 (0)