Skip to content

Commit

Permalink
Change how an automaton test reinitializes start state
Browse files Browse the repository at this point in the history
  • Loading branch information
cryptocode committed Jun 26, 2024
1 parent 557736c commit acc4055
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tests.zig
Original file line number Diff line number Diff line change
Expand Up @@ -815,7 +815,7 @@ test "push-down automaton game: crouching -> jumping -> flying -> jumping -> cro
defer state.deinit();

// Next sequence is: crouching -> jumping -> flying -> jumping -> croaching
try state.fsm.transitionToSilently(.crouching, false);
state.fsm.setStartState(.crouching);

// Double jump to start flying
_ = try state.do(.jump);
Expand Down

0 comments on commit acc4055

Please sign in to comment.