#NEWLINE# def test_multiple_results_m( ) : #NEWLINE# #INDENT# expr1 = ( ( x + y ) * z ) #NEWLINE# expr2 = ( ( x - y ) * z ) #NEWLINE# name_expr = ( 'test' , [ expr1 , expr2 ] ) #NEWLINE# ( result , ) = codegen ( name_expr , 'Octave' , header = False , empty = False ) #NEWLINE# source = result [ 1 ] #NEWLINE# expected = 'function [out1, out2] = test(x, y, z)\n  out1 = z.*(x + y);\n  out2 = z.*(x - y);\nend\n' #NEWLINE# assert ( source == expected )