#NEWLINE# def test_Matrix( ) : #NEWLINE# #INDENT# for ( cls , name ) in [ ( Matrix , 'MutableDenseMatrix' ) , ( ImmutableMatrix , 'ImmutableMatrix' ) ] : #NEWLINE# #INDENT# sT ( cls ( [ [ ( x ** ( + 1 ) ) , 1 ] , [ y , ( x + y ) ] ] ) , ( "%s([[Symbol('x'), Integer(1)], [Symbol('y'), Add(Symbol('x'), Symbol('y'))]])" % cls ) ) #NEWLINE# sT ( cls ( ) , ( '%s([])' % name ) ) #NEWLINE# sT ( cls ( [ [ ( x ** ( + 1 ) ) , 1 ] , [ y , ( x + y ) ] ] ) , ( "%s([[Symbol('x'), Integer(1)], [Symbol('y'), Add(Symbol('x'), Symbol('y'))]])" % name ) )