mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-10 01:26:03 +02:00
* test for last commit
git-svn-id: trunk@1808 -
This commit is contained in:
parent
fd2afe913f
commit
c28e41ab03
1
.gitattributes
vendored
1
.gitattributes
vendored
@ -6376,6 +6376,7 @@ tests/webtbs/tw4489.pp -text svneol=unset#text/plain
|
||||
tests/webtbs/tw4496.pp svneol=native#text/plain
|
||||
tests/webtbs/tw4529.pp -text svneol=unset#text/plain
|
||||
tests/webtbs/tw4537.pp svneol=native#text/plain
|
||||
tests/webtbs/tw4540.pp -text svneol=unset#text/plain
|
||||
tests/webtbs/ub1873.pp svneol=native#text/plain
|
||||
tests/webtbs/ub1883.pp svneol=native#text/plain
|
||||
tests/webtbs/uw0555.pp svneol=native#text/plain
|
||||
|
23
tests/webtbs/tw4540.pp
Normal file
23
tests/webtbs/tw4540.pp
Normal file
@ -0,0 +1,23 @@
|
||||
{ Source provided for Free Pascal Bug Report 4540 }
|
||||
{ Submitted by "Aleksa Todorovic" on 2005-11-23 }
|
||||
{ e-mail: alexione@mindnever.org }
|
||||
program TestAnsiEndsStr;
|
||||
|
||||
uses
|
||||
StrUtils;
|
||||
|
||||
begin
|
||||
Writeln('A/AB: ', AnsiEndsStr('A', 'AB'));
|
||||
if AnsiEndsStr('A', 'AB')<>false then
|
||||
halt(1);
|
||||
// False -> ok
|
||||
Writeln('AB/AB: ', AnsiEndsStr('AB', 'AB'));
|
||||
if AnsiEndsStr('AB', 'AB')<>true then
|
||||
halt(1);
|
||||
// True -> ok
|
||||
Writeln('ABC/AB: ', AnsiEndsStr('ABC', 'AB'));
|
||||
if AnsiEndsStr('ABC', 'AB')<>false then
|
||||
halt(1);
|
||||
writeln('ok');
|
||||
// True -> ???
|
||||
end.
|
Loading…
Reference in New Issue
Block a user