Mercurial > octave-nkf
comparison scripts/testfun/assert.m @ 6199:7f7f612eac06
[project @ 2006-12-05 14:24:48 by jwe]
author | jwe |
---|---|
date | Tue, 05 Dec 2006 14:24:48 +0000 |
parents | 045038e0108a |
children | 6110e7d4e4c4 |
comparison
equal
deleted
inserted
replaced
6198:0b190c343471 | 6199:7f7f612eac06 |
---|---|
112 if empty, v = cell(1,0); endif | 112 if empty, v = cell(1,0); endif |
113 if normal, v = {v}; else v = v(:)'; endif | 113 if normal, v = {v}; else v = v(:)'; endif |
114 assert(v,{expected.(k)},tol) | 114 assert(v,{expected.(k)},tol) |
115 endfor | 115 endfor |
116 catch | 116 catch |
117 "catch" | |
118 iserror = 1; | 117 iserror = 1; |
119 end | 118 end |
120 endif | 119 endif |
121 | 120 |
122 elseif (isempty (expected)) | 121 elseif (isempty (expected)) |