This commit is contained in:
Jonas Maebe 2001-12-28 14:10:08 +00:00
parent ad0fc51cf6
commit 69cfac2135

22
tests/webtbs/tw1735.pp Normal file
View File

@ -0,0 +1,22 @@
{$mode delphi}
function UpperCase(S: string): string;
var
i: integer;
begin
for i := 1 to length(s) do
case s[i] of
'a' .. 'z': Dec(s[i], 32);
// 'a' .. 'z': s[i] := chr(ord(s[i])-32);
end;
result := s;
end;
var
s: string;
begin
s := 'abcdef';
writeln(uppercase(s));
writeln(s);
if (s <> 'abcdef') then
halt(1);
end.