tests: add another test for TestTrimFileName.

This commit is contained in:
Bart 2021-08-20 18:54:50 +02:00
parent 840389dad3
commit 6df7e87568

View File

@ -127,6 +127,7 @@ procedure TTestLazFileUtils.TestTrimFileName;
begin
{$ifdef windows}
DoTest('c:\LazarusDir\..\dir\','c:\dir\');
DoTest('c:\..','c:\'); //yes Windows actually treats it as that.
{$endif}
DoTest('$(LazarusDir)\..\dir\','$(LazarusDir)\..\dir\');
DoTest(' a ','a');