tests: added tests for TrimFilename

git-svn-id: trunk@53276 -
This commit is contained in:
mattias 2016-11-01 19:55:44 +00:00
parent 88c8a65391
commit 8872e27e69

View File

@ -55,6 +55,21 @@ begin
{$endif}
DoTest('$(LazarusDir)\..\dir\','$(LazarusDir)\..\dir\');
DoTest(' a ','a');
DoTest('a ','a');
DoTest('.','.');
DoTest('a/','a/');
DoTest('a/.','a/');
DoTest('./a','a');
DoTest('././a','a');
DoTest('a/..','.');
DoTest('a/b/..','a/');
DoTest('a/../b','b');
DoTest('a/b/../c','a/c');
DoTest('a/b/../../c','c');
DoTest('a/./b','a/b');
DoTest('a/.//b','a/b');
DoTest('a//b','a/b');
DoTest('a//./b','a/b');
end;
procedure TTestFileProc.TestCreateRelativePath;