From b55d844164fd2bfdc9c1088e0a356cdd6a1f3bde Mon Sep 17 00:00:00 2001 From: lethosor Date: Thu, 12 Nov 2020 21:03:05 -0500 Subject: [PATCH] Add test for get_initial_cwd() --- test/core.lua | 4 ++++ 1 file changed, 4 insertions(+) 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')