#NEWLINE# def test_list_functor_map( self ) : #NEWLINE# #INDENT# x = unit ( 42 ) #NEWLINE# f = ( lambda x : ( x * 10 ) ) #NEWLINE# self . assertEqual ( x . map ( f ) , unit ( 420 ) ) #NEWLINE# y = List ( [ 1 , 2 , 3 , 4 ] ) #NEWLINE# g = ( lambda x : ( x * 10 ) ) #NEWLINE# self . assertEqual ( y . map ( g ) , List ( [ 10 , 20 , 30 , 40 ] ) )