#NEWLINE# def test_gf_trace_map( ) : #NEWLINE# #INDENT# f = ZZ . map ( [ 1 , 1 , 4 , 9 , 1 ] ) #NEWLINE# a = [ 1 , 1 , 1 ] #NEWLINE# c = ZZ . map ( [ 1 , 0 ] ) #NEWLINE# b = gf_pow_mod ( c , 11 , f , 11 , ZZ ) #NEWLINE# assert ( gf_trace_map ( a , b , c , 0 , f , 11 , ZZ ) == ( [ 1 , 1 , 1 ] , [ 1 , 1 , 1 ] ) ) #NEWLINE# assert ( gf_trace_map ( a , b , c , 1 , f , 11 , ZZ ) == ( [ 5 , 2 , 10 , 3 ] , [ 5 , 3 , 0 , 4 ] ) ) #NEWLINE# assert ( gf_trace_map ( a , b , c , 2 , f , 11 , ZZ ) == ( [ 5 , 9 , 5 , 3 ] , [ 10 , 1 , 5 , 7 ] ) ) #NEWLINE# assert ( gf_trace_map ( a , b , c , 3 , f , 11 , ZZ ) == ( [ 1 , 10 , 6 , 0 ] , [ 7 ] ) ) #NEWLINE# assert ( gf_trace_map ( a , b , c , 4 , f , 11 , ZZ ) == ( [ 1 , 1 , 1 ] , [ 1 , 1 , 8 ] ) ) #NEWLINE# assert ( gf_trace_map ( a , b , c , 5 , f , 11 , ZZ ) == ( [ 5 , 2 , 10 , 3 ] , [ 5 , 3 , 0 , 0 ] ) ) #NEWLINE# assert ( gf_trace_map ( a , b , c , 11 , f , 11 , ZZ ) == ( [ 1 , 10 , 6 , 0 ] , [ 10 ] ) )