mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-18 05:00:07 +02:00
+ bug #1735
This commit is contained in:
parent
ad0fc51cf6
commit
69cfac2135
22
tests/webtbs/tw1735.pp
Normal file
22
tests/webtbs/tw1735.pp
Normal 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.
|
Loading…
Reference in New Issue
Block a user