- JollyJumpers/Leonardong . . . . 2 matches
if self.checkJolly( aSet = self.getSetOfDiffence( aSeries[1:] ),
def checkJolly( self, aSet, aN ):
def testCheckJolly(self):
self.jj.checkJolly(
self.jj.checkJolly(
처음에 리스트에 차를 집어넣은 후 정렬하려 했다가 집합 개념이 떠올라 그 쪽으로 해결했다. statementForSeries메서드 부분에 있던 CheckJolly메서드를 따로 테스트하면서 ExtractMethod를 하게 되었고, 차가 음수인 경우도 테스트를 통해 알게되었다. 보폭이 아직 좁지만 술술 진행한 문제이다.