diff --git a/test/core.lua b/test/core.lua index 6cde334d4..ba104c90a 100644 --- a/test/core.lua +++ b/test/core.lua @@ -13,6 +13,10 @@ function test.getDFPath() expect.eq(clean_path(dfhack.getDFPath()), old_cwd) end +function test.get_initial_cwd() + expect.eq(clean_path(dfhack.filesystem.get_initial_cwd()), clean_path(dfhack.getDFPath())) +end + function test.getDFPath_chdir() dfhack.with_finalize(restore_cwd, function() fs.chdir('data')