1. write a test
2. run your test and see how it fails.
3. write code that will satify the test
4. run your test again and see your new test pass.
5. refactor your code
6. run your test again to confirm the test didn't break
7. repeat
本文共 283 字,大约阅读时间需要 1 分钟。
1. write a test
2. run your test and see how it fails.
3. write code that will satify the test
4. run your test again and see your new test pass.
5. refactor your code
6. run your test again to confirm the test didn't break
7. repeat
转载于:https://www.cnblogs.com/yc5518/p/9850448.html