diff scripts/testfun/assert.m @ 28530:8558c6ad4d71 stable

doc: * scripts/testfun/assert.m: comment changes (bug #58686) Addition to cset 286fe9352cd6.
author Kai T. Ohlhus <k.ohlhus@gmail.com>
date Fri, 03 Jul 2020 16:10:43 +0900
parents 286fe9352cd6
children 90fea9cc9caa 0a5b15007766
line wrap: on
line diff
--- a/scripts/testfun/assert.m	Fri Jul 03 16:02:39 2020 +0900
+++ b/scripts/testfun/assert.m	Fri Jul 03 16:10:43 2020 +0900
@@ -196,6 +196,9 @@
           err.reason{end+1} = "Structure fieldname mismatch";
         else
           try
+            ## Test if both structs are empty, i.e. 0x0, Nx0, or Nx0 structs.
+            ## In this case the values cannot be extracted for comparison as
+            ## they are not assignable and not defined.
             assert (isempty (cond), isempty (expected));
 
             if (! isempty (cond))