然后,我继续添加测试,每次通过添加新代码、变更现有代码及重新分解的方式来修改代码。
Then, I continue to add tests, each time modifying the code by adding new code, changing existing code, and refactoring as I go.
再次重申,我只编写了通过测试所需的代码。
显而易见,我的任务就是使测试通过。
I spotted an error here, I could have spotted it by running it on different test sets, and using prints things, another way of doing it, but this idea of at least simulating it on simple examples lets you check a couple of important questions.
操作么?我在这里发现了一个错误,我也可以通过运行不同的测试集,或者运用print声明来发现这个错误,但是至少应该用简单的例子来手工模拟下,代码的思想可以让你,对一些很重要的问题进行检验。
Yeah. So I had to take a standardized test called the LSAT
可以。我必须先通过一个标准测试,叫LSAT。
应用推荐