fpc/tests/tbs/tb0503.pp
florian 867fc54147 * changing tests to fix regressions is only the last resort, so this should be sorted out by other means, r19117 reverted
--- Reverse-merging r19117 into '.':
U    tests\tbs\tb0349.pp
U    tests\tbs\tb0503.pp
 G   .
--- Recording mergeinfo for reverse merge of r19117 into '.':
 G   .

git-svn-id: trunk@19136 -
2011-09-17 18:21:25 +00:00

42 lines
587 B
ObjectPascal

procedure testansi;
var
s, q: ansistring;
begin
s := 'hell';
s := s+'o';
q := '"';
q := q+'''';
s := s + q + s + 'abc';
if (s <> 'hello"''helloabc') then
halt(1);
s := 'hell';
s := s+'o';
s := q+s+q;
if (s <> '"''hello"''') then
halt(2);
end;
procedure testshort;
var
s, q: shortstring;
begin
s := 'hell';
s := s+'o';
q := '"';
q := q+'''';
s := s + q + s + 'abc';
if (s <> 'hello"''helloabc') then
halt(3);
s := 'hell';
s := s+'o';
s := q+s+q;
if (s <> '"''hello"''') then
halt(4);
end;
begin
testansi;
testshort;
end.