#NEWLINE# def test_vector_iterator( self ) : #NEWLINE# #INDENT# v = reduce ( ( lambda acc , el : acc . assoc ( el , ( el + 1 ) ) ) , range ( 1500 ) , Vector ( ) ) #NEWLINE# self . assertEqual ( list ( range ( 1 , 1501 ) ) , list ( v ) ) #NEWLINE# self . assertEqual ( 1125750 , sum ( self ) )