Browse Source

+ cosh(800) should raise an floating point overflow

florian 11 months ago
parent
commit
266662971b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      tests/webtbs/tw3157.pp

+ 1 - 1
tests/webtbs/tw3157.pp

@@ -28,7 +28,7 @@ begin
   on E:Exception do
   on E:Exception do
     begin
     begin
       Writeln('Line "c:=..." raised ' +E.ClassName+ ': ' +E.Message);
       Writeln('Line "c:=..." raised ' +E.ClassName+ ': ' +E.Message);
-      if E.ClassType<>EInvalidOp then
+      if E.ClassType<>EOverflow then
         begin
         begin
           writeln('EInvalidOp exception expected');
           writeln('EInvalidOp exception expected');
           halt(1);
           halt(1);