AssertEquals of FPCUnit is not working with a string ending with # 0
Original Reporter info from Mantis: Kverde
-
Reporter name:
Original Reporter info from Mantis: Kverde
- Reporter name:
Description:
// Lazarus 1.0.10 r41613 FPC 2.6.2 x86_64-win64-win32/win64
procedure TTestCase1.Test1;
var
Str: string;
begin
Str := '1'#0#0;
AssertEquals('1', Str); //test should fail, but it is correct
end;
Mantis conversion info:
- Mantis ID: 24688
- Fixed in version: 3.1.1
- Fixed in revision: 35878 (#6252a02f)
- Monitored by: » dezlov (Denis Kozlov)
- Target version: 3.2.0