[giac] 03/04: Loosen expected test case in chk_fhan16

Ximin Luo infinity0 at debian.org
Fri Jul 21 14:58:56 UTC 2017


This is an automated email from the git hooks/post-receive script.

infinity0 pushed a commit to branch master
in repository giac.

commit 8fdf60f34f54eae2f52c0a8db9e1c4b146fd95d7
Author: Ximin Luo <infinity0 at debian.org>
Date:   Fri Jul 21 16:56:27 2017 +0200

    Loosen expected test case in chk_fhan16
---
 debian/patches/test-fixes.patch | 115 +++++++++++++++++++++++++++++++++++-----
 1 file changed, 101 insertions(+), 14 deletions(-)

diff --git a/debian/patches/test-fixes.patch b/debian/patches/test-fixes.patch
index 4dfd34f..ed529b7 100644
--- a/debian/patches/test-fixes.patch
+++ b/debian/patches/test-fixes.patch
@@ -1,18 +1,105 @@
-Description: Fix equivalent test cases
- The difference is probably just caused by having versions of dependencies
- that are different in Debian from what upstream expects, most likely Pari
+Description: Loosen expected test case in chk_fhan16
+ Upstream says it is only a sorting issue and not an important test failure.
 Author: Ximin Luo <infinity0 at debian.org>
-Forwarded: not-needed
+Bug: http://xcas.e.ujf-grenoble.fr/XCAS/viewtopic.php?p=8965#p8965
 ---
 This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
---- a/check/TP16-sol.cas.out1
-+++ b/check/TP16-sol.cas.out1
-@@ -48,7 +48,7 @@
- "Done",
- [-sqrt(13)-1,sqrt(13)-1,4],
- y^2+6*sqrt(13)+18,y^2-6*sqrt(13)+18,y^2,
---sqrt(6)*I*sqrt(sqrt(13)+3),sqrt(6)*I*sqrt(sqrt(13)+3),-sqrt(6)*sqrt(sqrt(13)-3),sqrt(6)*sqrt(sqrt(13)-3),0,
+--- /dev/null
++++ b/check/TP16-sol.cas.out2
+@@ -0,0 +1,88 @@
++[],
++"Warning: some commands like subs might change arguments order",
++0,0,0,1,0,1e-10,10,[1,50,0,25],0,0,0,
++t*(t^2-1)^2,
++t^2+1,
++x^2-y^5+9*y^4-32*y^3+56*y^2-48*y+16,
++"No such variable x","No such variable y","No such variable u","No such variable t",
++"Done",
++"Done",
++1/(tan(t/2)^2+tan(t/2)+1),
++1/(u^2+u+1),
++-8*tan(t/2)^3/(3*tan(t/2)^6-2*tan(t/2)^5+9*tan(t/2)^4-4*tan(t/2)^3+9*tan(t/2)^2-2*tan(t/2)+3),
++-8*u^3/(3*u^6-2*u^5+9*u^4-4*u^3+9*u^2-2*u+3),
++25*x^6*y^2-80*x^6*y+64*x^6-10*x^5*y^2+136*x^5*y-192*x^5+59*x^4*y^2+56*x^4*y+192*x^4-20*x^3*y^2-240*x^3*y-64*x^3+43*x^2*y^2+104*x^2*y-10*x*y^2+9*y^2,
++"Done",
++"Done",
++"No such variable x","No such variable y",
++x*y-4,
++y^2-(x-3)*(x^2-16),
++"Done",
++"Done",
++-x^5+3*x^4+16*x^3-48*x^2+16,
++(-1.0)*(x-4.105876927)*(x-2.749235551)*(x-0.6633796231)*(x+0.5365997443)*(x+3.981892356),
++[1-t,1+(y-1)*t],
++(1-t)*(1+(y-1)*t)-4,
++(1+(y-1)*t)^2-(1-t-3)*((1-t)^2-16),
++14*y^5-193*y^4-604*y^3+2064*y^2-1728*y+448,
++-29421,
++1,
++(1+l*(t-1))*(1+l*(-2*t-1))-4,
++(1+l*(-2*t-1))^2-(1+l*(t-1)-3)*((1+l*(t-1))^2-16),
++-14699*t^6+25716*t^5+1779*t^4-15116*t^3-624*t^2+2496*t+448,
++-0.5062528649,-0.3273837129,-0.2487685675,0.6001057333,1.0,1.231806181,
++"Done",
++"Done",
++"No such variable x","No such variable y",
++(x-2)^2+y^2-4,
++y^2-(x-3)*(x^2-16),
++"Done",
++"Done",
++pnt(pnt[circle(pnt[group[0,4],0,2*Pi]),1]),[pnt(pnt[group[-3.97752809-1.118420095*I,-3.974479047-1.191394188*I,-3.971232211-1.264360037*I,-3.967786625-1.337317064*I,-3.964141286-1.410264683*I,-3.960295111-1.483202294*I,-3.956246976-1.556129287*I,-3.951995658-1.629045037*I,-3.947539884-1.701948907*I,-3.942878308-1.774840242*I,-3.938009509-1.847718373*I,-3.932932006-1.920582613*I,-3.927644221-1.993432259*I,-3.922144504-2.066266586*I,-3.916431129-2.13908485*I,-3.910502296-2.211886283*I,-3. [...]
++x^6-4*x^5-36*x^4+176*x^3+208*x^2-1920*x+2304,
++1.0*(-3.9999999999999494725166+x)*(-3.9999999999999494725166+x)*(x-2.605551275)*(x-2.605551275)*(x+4.605551275)*(x+4.605551275),
++(x-4)^2*(x^2+2*x-12)^2,
++(x-4)^2*(x-sqrt(13)+1)^2*(x+sqrt(13)+1)^2,
++x^3-2*x^2-20*x+48,
++[-4.605551275,2.605551275,4.0],
++"Done",
++[-sqrt(13)-1,sqrt(13)-1,4],
++y^2+6*sqrt(13)+18,y^2-6*sqrt(13)+18,y^2,
 +sqrt(6)*I*sqrt(sqrt(13)+3),-sqrt(6)*I*sqrt(sqrt(13)+3),-sqrt(6)*sqrt(sqrt(13)-3),sqrt(6)*sqrt(sqrt(13)-3),0,
- "No such variable u",
- x^2+1/4*y^2+1/9*z^2-1,
- x^2+y^2+z^2-u,
++"No such variable u",
++x^2+1/4*y^2+1/9*z^2-1,
++x^2+y^2+z^2-u,
++(729*x^4-270*x^2*z^2+486*x^2*u-1944*x^2+25*z^4-90*z^2*u+360*z^2+81*u^2-648*u+1296)/1296,
++(9*u-5*z^2+27*x^2-36)^2/1296,
++27*x^2-5*z^2+9*u-36,
++9*u*(x[3])^2-5*z^2*(x[3])^2+27*(x[1])^2-36*(x[3])^2,
++matrix[[54,0,0],[0,0,0],[0,0,18*u-10*z^2-72]],
++"No such variable u",
++"Done",
++"No such variable t",
++3,
++[5+(x-5)*t,5+(y-5)*t,10-10*t],
++(14462809*x^4-10268100*x^3*y+5476320*x^3+9453704*x^2*y^2+206460*x^2*y-33894150*x^2-448200*x*y^3-1130040*x*y^2+4617900*x*y+1188000*x+27556*y^4+29880*y^3+154200*y^2-148500*y+680625)/1296,
++"Done",
++7*x^2+4*x*y+4*x*z+5*y^2+12*y*z+6*z^2+1,
++-x^2-2*x*y-2*x*z-4*y^2-6*y*z-3*z^2-2,
++7*(x[1])^2+4*x[1]*x[2]+4*x[1]*x[3]+5*(x[2])^2+12*x[2]*x[3]+6*(x[3])^2+(x[4])^2,
++-(x[1])^2-2*x[1]*x[2]-2*x[1]*x[3]-4*(x[2])^2-6*x[2]*x[3]-3*(x[3])^2-2*(x[4])^2,
++matrix[[14,4,4,0],[4,10,12,0],[4,12,12,0],[0,0,0,2]],
++matrix[[-2,-2,-2,0],[-2,-8,-6,0],[-2,-6,-6,0],[0,0,0,-4]],
++-16*(l1-2*l2)*(l1+l2)*(2*l1-l2)*(19*l1-2*l2),
++[[0,1,-1,0]],
++[[0,0,0,-1]],
++[[0,0,-1,0]],
++[[3,0,-1,0]],
++[x,y+t,-t],
++64*x^4+96*x^3*y+180*x^2*y^2+48*x^2+108*x*y^3+36*x*y+81*y^4+54*y^2+9,
++(8*x^2+6*x*y+9*y^2+3)^2,
++t^2*(x^2+y^2-1)+t*(x*y+y^2-x^2)+x^2+2*y^2-1,
++2*t*(x^2+y^2-1)+x*y+y^2-x^2,
++3*x^6+2*x^5*y+16*x^4*y^2-11*x^4-2*x^3*y+20*x^2*y^4-33*x^2*y^2+12*x^2-2*x*y^5+2*x*y^3+7*y^6-19*y^4+16*y^2-4,
++(x^2+y^2-1)*(3*x^4+2*x^3*y+13*x^2*y^2-8*x^2-2*x*y^3+7*y^4-12*y^2+4),
++3*x^4+2*x^3*y+13*x^2*y^2-8*x^2-2*x*y^3+7*y^4-12*y^2+4,
++ (t)->t^2*(x^2+y^2-1)+t*(x*y+y^2-x^2)+x^2+2*y^2-1,
++ (t)->2*t*(x^2+y^2-1)+x*y+y^2-x^2,
++"Done"
+--- a/check/chk_fhan16
++++ b/check/chk_fhan16
+@@ -1,4 +1,4 @@
+ #! /bin/sh
+ unset LANG
+ ../src/icas TP16-sol.cas > TP16.tst
+-diff TP16.tst TP16-sol.cas.out1
++diff TP16.tst TP16-sol.cas.out1 || diff TP16.tst TP16-sol.cas.out2

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/giac.git



More information about the debian-science-commits mailing list