Unit test for function TrimFileName fails
Original Reporter info from Mantis: JuhaManninen @JuhaManninen
-
Reporter name: Juha Manninen
Original Reporter info from Mantis: JuhaManninen @JuhaManninen
- Reporter name: Juha Manninen
Description:
Running cmd line program "runtests" with parameter "--suite=TTestLazFileUtils" gives output:
<Test Name="TestTrimFileName" Result="Failed" ElapsedTime="00:00:00.000">
<Message>TTestLazFileUtils.TestTrimFileName: "a/." expected: <a/> but was: <a></Message>
<ExceptionClass>EAssertionFailedError</ExceptionClass>
<ExceptionMessage>"a/." expected: <a/> but was: <a></ExceptionMessage>
</Test>
The test is in procedure TTestLazFileUtils.TestTrimFileName in line 136 of unit TestLazFileUtils.
DoTest('a/.','a/');
So the test expected 'a/' but got a plain 'a'.
Steps to reproduce:
Open project test/runtests.lpi and build it.
Then run it from console as "runtests --suite=TTestLazFileUtils".
Mantis conversion info:
- Mantis ID: 37188
- Version: 2.1 (SVN)