Add test for get_initial_cwd()

develop
lethosor 2020-11-12 21:03:05 -05:00
parent 913d860ae4
commit b55d844164
No known key found for this signature in database
GPG Key ID: 76A269552F4F58C1
1 changed files with 4 additions and 0 deletions

@ -13,6 +13,10 @@ function test.getDFPath()
expect.eq(clean_path(dfhack.getDFPath()), old_cwd) expect.eq(clean_path(dfhack.getDFPath()), old_cwd)
end end
function test.get_initial_cwd()
expect.eq(clean_path(dfhack.filesystem.get_initial_cwd()), clean_path(dfhack.getDFPath()))
end
function test.getDFPath_chdir() function test.getDFPath_chdir()
dfhack.with_finalize(restore_cwd, function() dfhack.with_finalize(restore_cwd, function()
fs.chdir('data') fs.chdir('data')