Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions test/structures/unions.lua
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,14 @@ function test.unit_action_type()
for index, name in ipairs(df.unit_action_type) do
expect.true_(name, "unit_action_type entry without name: " .. tostring(index))
local tag = df.unit_action_type.attrs[name].tag
expect.true_(tag, "unit_action_type entry missing tag: name=" .. name)
action.type = index
expect.pairs_contains(action.data, tag,
"unit_action_type entry missing from unit_action.data: name=" .. name)
if name ~= 'NONE' then
-- expect.false_(tag, "unit_action_type tag entry for NONE is not absent")
else
expect.true_(tag, "unit_action_type entry missing tag: name=" .. name)
action.type = index
expect.pairs_contains(action.data, tag,
"unit_action_type entry missing from unit_action.data: name=" .. name)
end
end
end)
end
Loading