필터 지우기
필터 지우기

Positive feedback in hidden tests?

조회 수: 3 (최근 30일)
Anna Nissen
Anna Nissen 2017년 6월 7일
댓글: Anna Nissen 2017년 6월 7일
Is there some way to give positive feedback in hidden tests in Cody coursework? I would like to not only give a hint when a test fails (e.g. via the error message in the assert function), but to also display a comment for tests which are passed and have not found a way to do this.
I understand that the idea behind hidden tests is that the students should not see the tests, but it would still be helpful for them to know what the tests check both in the cases of fail and pass.

답변 (1개)

Steven Lord
Steven Lord 2017년 6월 7일
In step 4 of the description of how to contribute problems in the Cody help page, the hidden test suite calls assert. If you have specified a message in your assert call (see the msg input on the documentation page) I expect it will show up in the test results.
  댓글 수: 1
Anna Nissen
Anna Nissen 2017년 6월 7일
Yes, a message is printed in the cases where the assertion fails, and then the test fails because the assertion fails. Maybe I was not totally clear in my question, but I would like a message printed also for tests that are passed to give students an indication of what is tested in that particular test.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Test Execution에 대해 자세히 알아보기

제품

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by