diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index 019e612..9b15938 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -23,5 +23,7 @@ jobs: - run: cp -r target/eo-after/. gh-pages - uses: JamesIves/github-pages-deploy-action@v4.4.1 with: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }} branch: gh-pages folder: gh-pages diff --git a/src/test/eo/org/eolang/dejump/catch_error_in_goto.eo b/src/test/eo/org/eolang/dejump/catch_error_in_goto.eo new file mode 100644 index 0000000..bfbba0c --- /dev/null +++ b/src/test/eo/org/eolang/dejump/catch_error_in_goto.eo @@ -0,0 +1,19 @@ +[] > catch_error_in_goto + try > @ + [] + goto > @ + [g] + if. > @ + TRUE + g.forward + div. + 42 + 0 + "never happened" + [e] + seq > @ + QQ.io.stdout e + eq. + e + "The 1th argument of 'int.div' is invalid: division by zero is infinity" + nop \ No newline at end of file diff --git a/src/test/eo/org/eolang/dejump/goto_inside_nop.eo b/src/test/eo/org/eolang/dejump/goto_inside_nop.eo new file mode 100644 index 0000000..f8eb21b --- /dev/null +++ b/src/test/eo/org/eolang/dejump/goto_inside_nop.eo @@ -0,0 +1,7 @@ +[] > goto_inside_nop + nop > @ + goto + [g] + seq > @ + QQ.io.stdout "Never happened\n" + g.forward TRUE diff --git a/src/test/eo/org/eolang/dejump/goto_inside_try.eo b/src/test/eo/org/eolang/dejump/goto_inside_try.eo new file mode 100644 index 0000000..bed1398 --- /dev/null +++ b/src/test/eo/org/eolang/dejump/goto_inside_try.eo @@ -0,0 +1,12 @@ +[] > goto_inside_try + try > @ + [] + goto > @ + [g] + if. > @ + TRUE + g.forward TRUE + "never happened" + [e] + e > @ + nop