How to do assert isequal with a multiple returns function
显示 更早的评论
Hi,
I would like to know if anybody knows how to do to assert isequal with a function that has many returns?
example:
assert(isequal(function_name([table_a], [table_b], [table_c]), [return_a], [return_b], [return_c]))
Thanks!
1 个评论
dpb
2021-7-6
Only way I would see would be to save the outputs to a local variable first; MATLAB can't return multiple outputs inside a function call.
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Run Unit Tests 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!