mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-06 11:18:10 +02:00
tests: added tests for TrimFilename
git-svn-id: trunk@53276 -
This commit is contained in:
parent
88c8a65391
commit
8872e27e69
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user