Explorar o código

raise error if worng code generated

pierre %!s(int64=25) %!d(string=hai) anos
pai
achega
17e185afcb
Modificáronse 1 ficheiros con 8 adicións e 2 borrados
  1. 8 2
      tests/test/testintr.pp

+ 8 - 2
tests/test/testintr.pp

@@ -28,7 +28,13 @@ begin
   test1;
   test2(x,y);
   if (x<>1) or (y<>2) then
-    Writeln('Error with interrupt');
+    begin
+      Writeln('Error with interrupt');
+      Halt(1);
+    end;
   if test3<>55 then
-    Writeln('Error with interrupt function');
+    begin
+      Writeln('Error with interrupt function');
+      Halt(1);
+    end;
 end.