#NEWLINE# def test_UserDefinedFunctionSolve_SSQABS_2D( self ) : #NEWLINE# #INDENT# resultShouldBe = numpy . array ( [ ( - 7.88180304 ) , 1.51245438 ] ) #NEWLINE# model = pyeq2 . Models_2D . UserDefinedFunction . UserDefinedFunction ( 'SSQABS' , 'Default' , 'm*X + b' ) #NEWLINE# pyeq2 . dataConvertorService ( ) . ConvertAndSortColumnarASCII ( DataForUnitTests . asciiDataInColumns_2D_small , model , False ) #NEWLINE# result = model . Solve ( ) #NEWLINE# self . assertTrue ( numpy . allclose ( result , resultShouldBe , rtol = 1e-06 , atol = 1e-300 ) )