Jonas Maebe %!s(int64=20) %!d(string=hai) anos
pai
achega
bd70632e75
Modificáronse 1 ficheiros con 21 adicións e 0 borrados
  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.
+