* Bug #10287 fixed - Added an error message for complex expression as input argument of integrate function.
+* Bug #10305 fixed - Comparison of lists with empty items returned an error message.
+
* Bug #10596 fixed - exit(xxx) from Scilab was failing.
* Bug #10818 fixed - The following help pages have been added: hom, %e, %t, %f, %z and %s.
k1=definedfields(l1)
k2=definedfields(l2)
for i=intersect(k1,k2),
- if and(getfield(i,l1)==getfield(i,l2)) then r(i)= %t,end
+ a=getfield(i, l1);
+ b=getfield(i, l2);
+ if exists("a") == 0 | exists("b") == 0 then //case list(1,,2)
+ r(i) = %f;
+ else
+ if and(getfield(i,l1)==getfield(i,l2)) then r(i)= %t,end
+ end
end
s1=1:n1;s1(k1)=[];
s2=1:n1;s2(k2)=[];
--- /dev/null
+// =============================================================================
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2013 - Scilab Enterprises - Charlotte HECQUET
+//
+// This file is distributed under the same license as the Scilab package.
+// =============================================================================
+// <-- Non-regression test for bug 10305 -->
+//
+// <-- Bugzilla URL -->
+// http://bugzilla.scilab.org/show_bug.cgi?id=10305
+//
+// <-- Short Description -->
+// Compare lists with empty items is impossible
+l1 = list(1,,2);
+l2=l1;
+assert_checkequal(l1==l2, [%t %f %t]);
--- /dev/null
+// =============================================================================
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2013 - Scilab Enterprises - Charlotte HECQUET
+//
+// This file is distributed under the same license as the Scilab package.
+// =============================================================================
+
+
+// <-- Non-regression test for bug 10305 -->
+//
+// <-- Bugzilla URL -->
+// http://bugzilla.scilab.org/show_bug.cgi?id=10305
+//
+// <-- Short Description -->
+// Compare lists with empty items is impossible
+
+l1 = list(1,,2);
+l2=l1;
+assert_checkequal(l1==l2, [%t %f %t]);