Jonas Maebe 21 years ago
parent
commit
e8aee02c7c
1 changed files with 19 additions and 0 deletions
  1. 19 0
      tests/webtbs/tw3235.pp

+ 19 - 0
tests/webtbs/tw3235.pp

@@ -0,0 +1,19 @@
+program TestStrIComp;
+  uses
+    SysUtils;
+
+var l: longint;
+begin
+  l := StrIComp('abcdefghijklmnopqrstuvwxyz', 'ABCDEFGHIJKLMNOPQRSTUVWXYZ');
+  if (l <> 0) then
+    begin
+      writeln('error: expected 0, got ',l);
+      halt(1);
+    end;
+  l := StrIComp('ABCDEFGHIJKLMNOPQRSTUVWXYZ','abcdefghijklmnopqrstuvwxyz');
+  if (l <> 0) then
+    begin
+      writeln('error: expected 0, got ',l);
+      halt(1);
+    end;
+end.