fpc/tests/webtbs/tw3477.pp
fpc 790a4fe2d3 * log and id tags removed
git-svn-id: trunk@42 -
2005-05-21 09:42:41 +00:00

34 lines
716 B
ObjectPascal

{ Source provided for Free Pascal Bug Report 3477 }
{ Submitted by "Michalis Kamburelis" on 2004-12-26 }
{ e-mail: michalis@camelot.homedns.org }
{ Prints
666666
6666666
0000000066666666
0000000666666666
0000006666666666
Should print (and does after applying my simple patch)
666666
6666666
66666666
666666666
6666666666
}
uses SysUtils,erroru;
procedure Check(a,b:ansistring);
begin
writeln(a);
if a<>b then
error;
end;
begin
Check(Format('%x', [$666666]),'666666');
Check(Format('%x', [$6666666]),'6666666');
Check(Format('%x', [$66666666]),'66666666');
Check(Format('%x', [$666666666]),'666666666');
Check(Format('%x', [$6666666666]),'6666666666');
end.