Explorar o código

* extended test

git-svn-id: trunk@21728 -
Jonas Maebe %!s(int64=13) %!d(string=hai) anos
pai
achega
ea516b59b0
Modificáronse 1 ficheiros con 14 adicións e 9 borrados
  1. 14 9
      tests/webtbs/tw20998.pp

+ 14 - 9
tests/webtbs/tw20998.pp

@@ -1,18 +1,23 @@
 var
   i : int64;
-
+  j, k: longint;
 begin
-  i:=6400;
-  i:=i div 64;
-  if i<>100 then
-    halt(1);
+  k:=64;
+  for j:=6400 to 6464 do
+    begin
+      i:=j;
+      if (i div 64) <> (i div k) then
+        halt(1);
+    end;
   i:=6500;
   i:=i div 65;
   if i<>100 then
     halt(1);
-  i:=-6400;
-  i:=i div 64;
-  if i<>-100 then
-    halt(1);
+  for j:=-6400 downto -6464 do
+    begin
+      i:=j;
+      if (i div 64) <> (i div k) then
+        halt(2);
+    end;
   writeln('ok');
 end.