当前位置: 动力学知识库 > 问答 > 编程问答 >

Unit testing the tower of hanoi problem

问题描述:

If I was unit testing the tower of hanoi problem, what would be the best cases? I can test the parameters and the general expected output of the method, but is it possible to test anything else?

So I could test: Output is correct (algorithm has worked), arguments are of the correct assumption (ie not null), anythine else?

Thanks

网友答案:

Frankly, the Hanoi problem is solved so quickly i almost think you could test any input vs the correct output in an acceptable time.

分享给朋友:
您可能感兴趣的文章:
随机阅读: