test suite: FPC 3.2 compatibility fix.

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7640 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
inoussa
2020-08-31 17:51:47 +00:00
parent e65cc723d5
commit c4acd0b769

View File

@ -34,8 +34,11 @@ type
protected
procedure CheckEquals(expected, actual: TByteDynArray; msg: string = ''; const AStrict : Boolean = True); overload;
{$IFDEF FPC}
{$IF (FPC_FULLVERSION < 30200) }
procedure CheckEquals(expected, actual: Int64; msg: string = ''; const AStrict : Boolean = True); overload;
procedure CheckEquals(expected, actual: QWord; msg: string = ''; const AStrict : Boolean = True); overload;
{$IFEND}
procedure CheckEquals(expected, actual: Currency; msg: string = ''); overload;
{$ENDIF FPC}
{$IFDEF WST_DELPHI}
@ -150,6 +153,7 @@ end;
{ TWstBaseTest }
{$IFDEF FPC}
{$IF (FPC_FULLVERSION < 30200) }
procedure TWstBaseTest.CheckEquals(expected, actual: Int64; msg: string;
const AStrict: Boolean);
begin
@ -157,12 +161,14 @@ begin
FailNotEquals(IntToStr(expected), IntToStr(actual), msg{$IFDEF WST_DELPHI}, CallerAddr{$ENDIF WST_DELPHI});
end;
procedure TWstBaseTest.CheckEquals(expected, actual: QWord; msg: string;
const AStrict: Boolean);
begin
if (expected <> actual) then
FailNotEquals(IntToStr(expected), IntToStr(actual), msg{$IFDEF WST_DELPHI}, CallerAddr{$ENDIF WST_DELPHI});
end;
{$IFEND}
procedure TWstBaseTest.CheckEquals(expected, actual : Currency; msg : string);
begin