add gitignore
Test: parking lot is not full at very beginning
TPP: nil -> constant
Test: can park car when parking lot is just opened
TPP: nil -> constant
Test: can park another car after first car parked
TPP: constant -> scala (1 -> ++currentParkingId). I feel "++currentParkingId" should be a scala because "++" calculation is too simple
Test: parking lot is full when car parked to its capacity
TPP: constant -> statement (false -> currentParkingId == capacity)
Test: can park another car after parked car left
TPP: nil -> scala (nil -> currentParkingId--
Rename get to leave
Add but ignore test parking id is 1 when second parked car leave
Add spaceAvailabilities array to replace the capacity
Set space availability while park and leave
Just found the new case is wrong... faint
Correct the case but still ignore it since the code is not ready
Pass Test: parking id is 1 when first parked car leave and second car still there
TPP: expression -> function (there is a new for loop and an if condition inside). Since I add this case (and ignore it before this commit), I can't see any other case to make it simpler transformation
Remove currentParkingId
Refactor space and parkingId related code to make them more readable
A small refactoring in isFull