Browse Source

* extended test

git-svn-id: trunk@47818 -
florian 4 years ago
parent
commit
b8fc193b0c
1 changed files with 12 additions and 0 deletions
  1. 12 0
      tests/test/texception4.pp

+ 12 - 0
tests/test/texception4.pp

@@ -135,6 +135,18 @@ begin
        end;
    end;
    test_exception('ln(0)');
+   try
+   exception_called:=false;
+   i := -1;
+   e := sqrt(i);
+   except
+     on e : exception do
+       begin
+         Writeln('exception called ',e.message);
+         exception_called:=true;
+       end;
+   end;
+   test_exception('sqrt(-1)');
    if program_has_errors then
      Halt(1);
 end.