Skip to content

Commit b68b351

Browse files
author
Markus Humm
committed
Small unit test improvements
1 parent 8f0ee91 commit b68b351

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Unit Tests/Tests/TestDECHash.pas

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5519,7 +5519,7 @@ procedure THash_TestBase.DoTestCalcUnicodeString(HashClass: TDECHash);
55195519
RawByteStrResult,
55205520
'Index: ' + IntToStr(i) + ' - expected: <' +
55215521
string(FTestData[i].ExpectedOutputUTFStrTest) + '> but was: <' +
5522-
string(RawByteStrResult) + '>');
5522+
string(RawByteStrResult) + '> Input: <' + TFormat_HEXL.Encode(InpStr) + '>');
55235523
end;
55245524
end;
55255525
end;

Unit Tests/Tests/TestDECHashSHA3.pas

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -576,11 +576,11 @@ procedure TestTHash_SHA3_Base.LoadTestDataFile(FileName : string;
576576
lDataRow.FinalBitLength := FinalByteLen;
577577
THash_SHA3Base(HashInst).FinalByteLength := FinalByteLen;
578578
//
579-
FinalByteLen := 0;
580-
U := CalcUnicodeHash(string(TFormat_HexL.Encode(MsgWithFixup)), HashInst);
581-
//NewContents.Add('MDuni = ' + string(U));
579+
// FinalByteLen := 0;
580+
//U := CalcUnicodeHash(string(TFormat_HexL.Encode(MsgWithFixup)), HashInst);
581+
////NewContents.Add('MDuni = ' + string(U));
582582

583-
lDataRow.ExpectedOutputUTFStrTest := U;
583+
// lDataRow.ExpectedOutputUTFStrTest := U;
584584
// CalcUnicodeHash(string(TFormat_HexL.Encode(MsgWithFixup)), HashInst);
585585
end;
586586

0 commit comments

Comments
 (0)