Jonas Maebe 20 years ago
parent
commit
bd70632e75
1 changed files with 21 additions and 0 deletions
  1. 21 0
      tests/webtbs/tw3805.pp

+ 21 - 0
tests/webtbs/tw3805.pp

@@ -0,0 +1,21 @@
+{$mode objfpc}{$H+}
+uses
+ classes;
+
+type
+ stringarty = array of string;
+var
+ ar1,ar2: stringarty;
+begin
+ setlength(ar1,4);
+ ar2:= copy(ar1,1,3);
+ if (length(ar2) <> 3) then
+   halt(1);
+ ar2:= copy(ar1,1,4);
+ if (length(ar2) <> 3) then
+   halt(2);
+ ar2:= copy(ar1,1,5);
+ if (length(ar2) <> 3) then
+   halt(3);
+end.
+