mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-17 12:59:24 +02:00
* Add test for case of pointer and size
This commit is contained in:
parent
ac9973490e
commit
1b6219823b
@ -26,6 +26,7 @@ type
|
||||
published
|
||||
procedure TestHookUp;
|
||||
procedure TestBytesToString;
|
||||
procedure TestPointerLengthToString;
|
||||
procedure TestBytesToBytes;
|
||||
procedure TestStringToString;
|
||||
end;
|
||||
@ -210,6 +211,12 @@ begin
|
||||
AssertBytes(EncDefBytes,Enc.Encode(DefBytes));
|
||||
end;
|
||||
|
||||
procedure TTestBase64Encoding.TestPointerLengthToString;
|
||||
|
||||
begin
|
||||
AssertEquals('Encoding',SDefBytes,Enc.EncodeBytesToString(Pointer(DefBytes),Length(DefBytes)));
|
||||
end;
|
||||
|
||||
procedure TTestBase64Encoding.TestStringToString;
|
||||
begin
|
||||
AssertEquals('Encoding', SDefLetters,Enc.Encode('ABCDE'));
|
||||
|
Loading…
Reference in New Issue
Block a user