Perhaps you get a bug report from a user in a particular configuration.
用户可能会报告在某种配置中遇到了bug。
One of the things we'll see as we go on, is you can get all your statistics right, and still get the wrong answer because of a consistent bug.
在我们运行过程中,我们看到你可以让所有的统计值是正确的,但依然得到了错误的答案,这可能是有什么连续性错误。
This ensures that you get to know if, due to a bug in the code in this function, the conditions that you expect to be true on exit, are not.
如果由于该函数中代码的错误,您期望退出时为真的条件并不为真,那么这些断言能够确保您知道这一点。
bug And maybe by understanding why it worked on a and not on b, you'll get a lot of insight that you won't if you just focus on the bug.
发现很多东西,而你只关注,本身的话就发现不了这么多东西,如果知道你的程序至少还对。
应用推荐