learn-more-python-the-hard-way-solutions icon indicating copy to clipboard operation
learn-more-python-the-hard-way-solutions copied to clipboard

Minor bug fixes - ex30 fsm solution

Open ctosullivan opened this issue 1 year ago • 0 comments

Hi there, really enjoyed the FSM chapter and exercise.

I have two minor bug fixes to propose for the solution to ex 30:

  • state functions which were meant to be returning the result of a function call weren't being called correctly
  • the test function wasn't initialising the starting state, resulting in the FSM reaching an error state incorrectly when it should have finished in the connected state

Many thanks,

Cormac

ctosullivan avatar Oct 14 '24 18:10 ctosullivan