* test for last commit

git-svn-id: trunk@1808 -
This commit is contained in:
florian 2005-11-23 19:32:19 +00:00
parent fd2afe913f
commit c28e41ab03
2 changed files with 24 additions and 0 deletions

1
.gitattributes vendored
View File

@ -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
View 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.