enable some core tests

develop
Myk Taylor 2023-08-03 22:38:49 -07:00
parent f28b46922c
commit e3161b8a4d
No known key found for this signature in database
3 changed files with 6 additions and 0 deletions

@ -1,3 +1,5 @@
config.targets = 'core'
local function clean_path(p)
-- todo: replace with dfhack.filesystem call?
return p:gsub('\\', '/'):gsub('//', '/'):gsub('/$', '')

@ -1,3 +1,5 @@
config.targets = 'core'
function test.toSearchNormalized()
expect.eq(dfhack.toSearchNormalized(''), '')
expect.eq(dfhack.toSearchNormalized('abcd'), 'abcd')

@ -1,3 +1,5 @@
config.targets = 'core'
function test.internal_in_test()
expect.true_(dfhack.internal.IN_TEST)
end