comparison 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
comparison
equal deleted inserted replaced
28529:7d601759c23d 28530:8558c6ad4d71
194 err.observed{end+1} = "O"; 194 err.observed{end+1} = "O";
195 err.expected{end+1} = "E"; 195 err.expected{end+1} = "E";
196 err.reason{end+1} = "Structure fieldname mismatch"; 196 err.reason{end+1} = "Structure fieldname mismatch";
197 else 197 else
198 try 198 try
199 ## Test if both structs are empty, i.e. 0x0, Nx0, or Nx0 structs.
200 ## In this case the values cannot be extracted for comparison as
201 ## they are not assignable and not defined.
199 assert (isempty (cond), isempty (expected)); 202 assert (isempty (cond), isempty (expected));
200 203
201 if (! isempty (cond)) 204 if (! isempty (cond))
202 for [v, k] = cond 205 for [v, k] = cond
203 if (numel (cond) == 1) 206 if (numel (cond) == 1)