Skip to content

Commit

Permalink
Merge pull request #28 from hedyhli/begin
Browse files Browse the repository at this point in the history
Add test for `Begin`
  • Loading branch information
StavromulaBeta authored Aug 27, 2024
2 parents 2e36e2b + b03e917 commit fdad033
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions tests/begin.cog
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
Let reached UnreachableCode Box False;
Let reached ReachableCode Box False;

Begin (
Def Exit;
Set reached ReachableCode to True;
Exit;
Set reached UnreachableCode to True;
);

Print If And reached Unbox ReachableCode and Not reached Unbox UnreachableCode
"PASS: Begin"
else
"FAIL: Begin";

0 comments on commit fdad033

Please sign in to comment.