enable remaining core and structures tests

develop
Myk Taylor 2023-08-03 23:54:14 -07:00
parent 1cf3f62237
commit f8dd09200f
No known key found for this signature in database
8 changed files with 16 additions and 1 deletions

@ -1,3 +1,5 @@
config.targets = 'core'
function test.getCurViewscreen() function test.getCurViewscreen()
local scr = dfhack.gui.getCurViewscreen() local scr = dfhack.gui.getCurViewscreen()
local scr2 = df.global.gview.view local scr2 = df.global.gview.view
@ -18,7 +20,7 @@ function test.getViewscreenByType()
local bad_type = df.viewscreen_titlest local bad_type = df.viewscreen_titlest
if scr._type == bad_type then if scr._type == bad_type then
bad_type = df.viewscreen_optionst bad_type = df.viewscreen_dwarfmodest
end end
local scr_bad = dfhack.gui.getViewscreenByType(bad_type) local scr_bad = dfhack.gui.getViewscreenByType(bad_type)
expect.eq(scr_bad, nil) expect.eq(scr_bad, nil)

@ -1,4 +1,5 @@
config.mode = 'title' config.mode = 'title'
config.targets = 'core'
local function clean_vec(vec) local function clean_vec(vec)
while #vec > 0 do while #vec > 0 do

@ -1,3 +1,5 @@
config.targets = 'core'
function test.overlappingGlobals() function test.overlappingGlobals()
local globals = {} local globals = {}
for name, _ in pairs(df.global) do for name, _ in pairs(df.global) do

@ -1,3 +1,5 @@
config.targets = 'core'
function test.index_name() function test.index_name()
for _, k in ipairs(df.units_other_id) do for _, k in ipairs(df.units_other_id) do
expect.eq(df.global.world.units.other[k]._kind, 'container') expect.eq(df.global.world.units.other[k]._kind, 'container')

@ -1,3 +1,5 @@
config.targets = 'core'
utils = require('utils') utils = require('utils')
function with_temp_ref(...) function with_temp_ref(...)

@ -1,3 +1,5 @@
config.targets = 'core'
function test.get() function test.get()
dfhack.with_temp_object(df.unit:new(), function(unit) dfhack.with_temp_object(df.unit:new(), function(unit)
expect.eq(unit:_field('hist_figure_id').ref_target, df.historical_figure) expect.eq(unit:_field('hist_figure_id').ref_target, df.historical_figure)

@ -1,3 +1,5 @@
config.targets = 'core'
function test.struct() function test.struct()
expect.eq(df.coord._kind, 'struct-type') expect.eq(df.coord._kind, 'struct-type')
expect.eq(tostring(df.coord), '<type: coord>') expect.eq(tostring(df.coord), '<type: coord>')

@ -1,3 +1,5 @@
config.targets = 'core'
local utils = require('utils') local utils = require('utils')
function test.unit_action_fields() function test.unit_action_fields()