{"body":"here's the whole new chunk of code:\n\n=head1 Testing intentional exits\n\nFor developers of Raku packages, it is sometimes useful to provide an intentional\nexit of the code path for a specific condition which can be indicated by a\nunique, numerical exit code in the POSIX range of 1-127. Such is provided by \ntest L<C<exits-ok>|/type/Test#sub_exits-ok>. Its use is demonstrated in the following\nsubroutine:\n\n    sub apply-factor-to(Numeric $num --> Numeric) {\n        unless $num > 1 {\n            say \"FATAL: sub 'apply-factor-to' input is $num, it must be > 1\";\n            exit(3);\n        }\n        $num * 2.0;\n    }\n\nThat can be tested like this:\n    \n    use Test;\n\n    exits-ok {\n        my $x = apply-factor-to -2;\n    }, 3, \"got the expected signal 3 for invalid input\";\n","name":"","extension":"txt","url":"https://www.irccloud.com/pastebin/irVcaEuO","modified":1767285461,"id":"irVcaEuO","size":777,"lines":25,"own_paste":false,"theme":"","date":1767285461}