From: Antonio Jimenez Pastor Date: Wed, 26 Sep 2018 12:28:18 +0000 (+0200) Subject: Fixed test file ddFunction.py to not use all global variables. X-Git-Url: http://git.risc.jku.at/gitweb/?a=commitdiff_plain;h=792d30f758d2ce117953afe6eefc841d7726b76a;p=ajpastor%2Fdiff_defined_functions.git Fixed test file ddFunction.py to not use all global variables. --- diff --git a/ajpastor/tests/dd_functions/ddFunction.py b/ajpastor/tests/dd_functions/ddFunction.py index 5a2bb1a..dd3e40b 100644 --- a/ajpastor/tests/dd_functions/ddFunction.py +++ b/ajpastor/tests/dd_functions/ddFunction.py @@ -50,7 +50,7 @@ def run(): ## Creation and Initial Values tests sverbose("Test for creation and initial values computation"); - sin = DFinite_example('sin'); + sin = Sin(x); assert_coefficients(sin, [_sage_const_1 ,_sage_const_0 ,_sage_const_1 ], 'sin'); assert_initialValues(sin, [_sage_const_0 , _sage_const_1 , _sage_const_0 , -_sage_const_1 , _sage_const_0 , _sage_const_1 ], 'sin'); @@ -87,7 +87,7 @@ def run(): # Summation, multiplication and scalar tests # Summation sverbose("Test for addition of elements (exp(x) + exp(x))"); - e = DFinite_example('e'); + e = Exp(x); _aux = e.add(e) assert_coefficients(_aux, [-_sage_const_1 ,_sage_const_1 ], '2exp(x)'); assert_initialValues(_aux, [_sage_const_2 ,_sage_const_2 ,_sage_const_2 ,_sage_const_2 ,_sage_const_2 ,_sage_const_2 ], '2exp(x)'); diff --git a/releases/diff_defined_functions__0.6.zip b/releases/diff_defined_functions__0.6.zip index dedf9cc..af41401 100644 Binary files a/releases/diff_defined_functions__0.6.zip and b/releases/diff_defined_functions__0.6.zip differ diff --git a/releases/old/diff_defined_functions__0.6__18.09.26_14:28:18.zip b/releases/old/diff_defined_functions__0.6__18.09.26_14:28:18.zip new file mode 100644 index 0000000..af41401 Binary files /dev/null and b/releases/old/diff_defined_functions__0.6__18.09.26_14:28:18.zip differ