diff --git a/Util/Path/FolderAbove.m b/Util/Path/FolderAbove.m index 6895fb883..80fd7e9b4 100644 --- a/Util/Path/FolderAbove.m +++ b/Util/Path/FolderAbove.m @@ -14,10 +14,10 @@ % above - a string with the folder above `level`. % % Example: -% path = '/dev/shm/'; +% path = [toolboxRootPath() filesep 'Util']; % level = 1; % [above] = FolderAbove(path,level); -% assert(strcmp(above,'/dev/')); +% assert(contains(toolboxRootPath(),above)); % % path = '/'; % levle = 10; diff --git a/Util/Path/rdir.m b/Util/Path/rdir.m index f43604aa6..cefb026e9 100644 --- a/Util/Path/rdir.m +++ b/Util/Path/rdir.m @@ -17,7 +17,7 @@ % % %simple test with nest folders % [allfiles,allfolders] = rdir([toolboxRootPath 'Java']); -% assert(sum(contains(allfolders,'Java/bin'))==4) +% assert(sum(contains(allfolders,['Java' filesep 'src' filesep 'org']))==3) % assert(sum(contains(allfiles,'ddb.jar'))==1) % % author: hugo.oliveira@utas.edu.au