0%
测试驱动开发 TDD
- Write a test that fails and run it to make sure it fails for the reason you expect;
- Write or modify just enough code to make the new test pass;
- Refactor the code you just added or changed and make sure the tests continue to pass.
- Repeat from step1;