catch exec errors

This commit is contained in:
2023-12-08 18:37:35 +01:00
parent e4a8af9b5b
commit 49e01565b9
3 changed files with 4 additions and 4 deletions

View File

@@ -1,2 +1,2 @@
exec testrpn 1 2 dumb
! exec testrpn 1 2 dumb
stdout 'unknown command or operator'

View File

@@ -1,2 +1,2 @@
exec testrpn 4 +
! exec testrpn 4 +
stdout 'stack doesn''t provide enough arguments'

View File

@@ -1,2 +1,2 @@
exec testrpn 100 50 50 - /
stdout 'division by null\n'
! exec testrpn 100 50 50 - /
stdout 'division by null'