mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-28 09:03:50 +02:00
TAChart: Use array assertion in TIntervalSourceTest.AssertValueEquals
git-svn-id: trunk@37582 -
This commit is contained in:
parent
f6fc1c150e
commit
22e7429e25
@ -453,10 +453,12 @@ procedure TIntervalSourceTest.AssertValueEquals(
|
||||
const AExpected: array of Double; const AActual: TChartValueTextArray);
|
||||
var
|
||||
i: Integer;
|
||||
a: array of Double;
|
||||
begin
|
||||
AssertEquals(Length(AExpected), Length(AActual));
|
||||
for i := 0 to High(AExpected) do
|
||||
AssertEquals(AExpected[i], AActual[i].FValue);
|
||||
SetLength(a, Length(AActual));
|
||||
for i := 0 to High(AActual) do
|
||||
a[i] := AActual[i].FValue;
|
||||
AssertEquals(AExpected, a, 1e-6);
|
||||
end;
|
||||
|
||||
procedure TIntervalSourceTest.IntervalSource;
|
||||
|
Loading…
Reference in New Issue
Block a user