mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-12-16 05:10:34 +01:00
21 lines
535 B
ObjectPascal
21 lines
535 B
ObjectPascal
program TestStrIComp;
|
|
uses
|
|
{$ifdef unix}{$ifdef darwin}iosxwstr{$else}cwstring{$endif},{$endif}
|
|
SysUtils;
|
|
|
|
var l: longint;
|
|
begin
|
|
l := StrIComp(pwidechar('abcdefghijklmnopqrstuvwxyz'), pwidechar('ABCDEFGHIJKLMNOPQRSTUVWXYZ'));
|
|
if (l <> 0) then
|
|
begin
|
|
writeln('error: expected 0, got ',l);
|
|
halt(1);
|
|
end;
|
|
l := StrIComp(pwidechar('ABCDEFGHIJKLMNOPQRSTUVWXYZ'),pwidechar('abcdefghijklmnopqrstuvwxyz'));
|
|
if (l <> 0) then
|
|
begin
|
|
writeln('error: expected 0, got ',l);
|
|
halt(1);
|
|
end;
|
|
end.
|