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!