Fix test Win 64b : test_run(cacsd, bug_2252) 95/10995/1
Adeline CARNIS [Mon, 25 Mar 2013 16:15:35 +0000 (17:15 +0100)]
Change-Id: Ic50cad70fde5447ee4cea7c12583b383124353cb

scilab/modules/cacsd/tests/nonreg_tests/bug_2252.dia.ref
scilab/modules/cacsd/tests/nonreg_tests/bug_2252.tst

index 7e98eb3..7bd1775 100644 (file)
@@ -20,4 +20,4 @@ ycsim=csim('step',t,p);
 sl=syslin('c',[-1 -2;0 -1],[1;1],[-1 0]);
 function ydot=sim(t,y),ydot=sl.a*y+sl.b,endfunction
 yode=sl.c*ode(zeros(2,1),0,t,1.414D-09,0.0000001,sim);
-if norm(ycsim-yode)>0.006 then bugmes();quit;end
+assert_checkalmostequal(ycsim, yode, [], 7e-3, "matrix");
index 2cf63f3..2e576ce 100644 (file)
@@ -23,4 +23,4 @@ sl=syslin('c',[-1 -2;0 -1],[1;1],[-1 0]);
 function ydot=sim(t,y),ydot=sl.a*y+sl.b,endfunction
 yode=sl.c*ode(zeros(2,1),0,t,1.414D-09,0.0000001,sim);
 
-if norm(ycsim-yode)>0.006 then pause,end
+assert_checkalmostequal(ycsim, yode, [], 7e-3, "matrix");