#NEWLINE# def test_do_one( ) : #NEWLINE# #INDENT# rl = do_one ( posdec , posdec ) #NEWLINE# assert ( rl ( 5 ) == 4 ) #NEWLINE# rl1 = ( lambda x : ( 2 if ( x == 1 ) else x ) ) #NEWLINE# rl2 = ( lambda x : ( 3 if ( x == 2 ) else x ) ) #NEWLINE# rule = do_one ( rl1 , rl2 ) #NEWLINE# assert ( rule ( 1 ) == 2 ) #NEWLINE# assert ( rule ( rule ( 1 ) ) == 3 )