Ad
  • Default User Avatar

    I have reconsidered everything you mentioned, thank you for the valuable comments.

  • Default User Avatar

    In this case I would like to show that if I am on the 3rd floor and touch the button 1, the elevator will go to the 1st floor.
    I know it smells a little, so I promise I will reconsider the form of the tests.

  • Default User Avatar

    there are only 4 levels, including the floor(0,1,2,3). So there is no level 4, the test for touching the button 4 is a good example for erronous input. This is the reason I included it in the Kata.