Skip to content

Commit

Permalink
Add tests for stop
Browse files Browse the repository at this point in the history
  • Loading branch information
hedyhli committed Aug 31, 2024
1 parent 2d36cd6 commit 24da5d4
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/stop-begin.cog
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
Begin (
Def Exit;
Do (
Print "PASS: Stop in begin";
Stop;
);
Print "FAIL: Stop in begin";
);
7 changes: 7 additions & 0 deletions tests/stop.cog
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Def F (
Print "PASS: Stop";
Stop;
Print "FAIL: Stop";
);

F;

0 comments on commit 24da5d4

Please sign in to comment.