mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-12 14:49:28 +02:00
+ test for #33559
This commit is contained in:
parent
b821b9d502
commit
d27c3b4b79
18
tests/webtbs/tw33559.pp
Normal file
18
tests/webtbs/tw33559.pp
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
{$mode delphi}
|
||||||
|
program Project1;
|
||||||
|
{$APPTYPE CONSOLE}
|
||||||
|
uses SysUtils, StrUtils;
|
||||||
|
const
|
||||||
|
FullStr = '123'#0'45';
|
||||||
|
TestStr = '123'#0'!';
|
||||||
|
begin
|
||||||
|
Writeln('StartsWith=', FullStr.StartsWith(TestStr));
|
||||||
|
if FullStr.StartsWith(TestStr) then
|
||||||
|
halt(1);
|
||||||
|
Writeln('Pos=', Pos(TestStr, FullStr) > 0);
|
||||||
|
if Pos(TestStr, FullStr) > 0 then
|
||||||
|
halt(1);
|
||||||
|
Writeln('StartsText=', StartsText(TestStr, FullStr));
|
||||||
|
if StartsText(TestStr, FullStr) then
|
||||||
|
halt(1);
|
||||||
|
end.
|
Loading…
Reference in New Issue
Block a user