Mercurial > octave
changeset 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 | 7d601759c23d |
children | cb76bf0248e5 171a2857d6d1 |
files | scripts/testfun/assert.m |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
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))