#NEWLINE# def test_solve_lin_sys_2x2_one( ) : #NEWLINE# #INDENT# ( domain , x1 , x2 ) = ring ( 'x1,x2' , QQ ) #NEWLINE# eqs = [ ( ( x1 + x2 ) - 5 ) , ( ( 2 * x1 ) - x2 ) ] #NEWLINE# sol = { #NEWLINE# #INDENT# x1 : QQ ( 5 , 3 ) , #NEWLINE# x2 : QQ ( 10 , 3 ) , #NEWLINE# #UNINDENT# } #NEWLINE# _sol = solve_lin_sys ( eqs , domain ) #NEWLINE# assert ( ( _sol == sol ) and all ( ( isinstance ( s , domain . dtype ) for s in _sol ) ) )