#NEWLINE# def check_terms( self , terms , expected , initial_workspace , mask ) : #NEWLINE# #INDENT# '\n        Compile the given terms into a TermGraph, compute it with\n        initial_workspace, and compare the results with ``expected``.\n        ' #NEWLINE# graph = TermGraph ( terms ) #NEWLINE# results = self . run_graph ( graph , initial_workspace , mask ) #NEWLINE# for ( key , ( res , exp ) ) in dzip_exact ( results , expected ) . items ( ) : #NEWLINE# #INDENT# check_arrays ( initial_workspace , exp )