question: public void testNegativeReverseStepByOneWithClosure ( ) { final List callLog = new ArrayList ( ) ; final Closure closure = new RecordingClosure ( callLog ) ; final Range range = createRange ( 5 , 1 ) ; range . step ( - 1 , closure ) ; assertEquals ( "wrong number of calls to closure" , 5 , callLog . size ( ) ) ; final Iterator iter = callLog . iterator ( ) ; for ( int i = 1 ; i <= 5 ; i ++ ) { assertEquals ( "wrong argument passed to closure" , createValue ( i ) , iter . next ( ) ) ; } }
target:  Tests stepping backwards through a reversed range with a closure.