From 6296e1bce8109417cdb51166eefd37f7143f1878 Mon Sep 17 00:00:00 2001 From: Allan CORNET Date: Sat, 31 Jul 2021 18:10:35 +0200 Subject: [PATCH] add test --- modules/files_folders_functions/tests/test_cd.m | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/modules/files_folders_functions/tests/test_cd.m b/modules/files_folders_functions/tests/test_cd.m index 3fa0c1c4a1..9cd934a25a 100644 --- a/modules/files_folders_functions/tests/test_cd.m +++ b/modules/files_folders_functions/tests/test_cd.m @@ -69,3 +69,9 @@ newDirectory = pwd(); assert_isequal(currentDirectory, newDirectory); %============================================================================= +temp_dest = [TMPDIR, createGUID()]; +mkdir(temp_dest); +cd(temp_dest); +currentDirectory = pwd(); +assert_isequal(currentDirectory, temp_dest); +%=============================================================================