#0346 · 反偷懒
说要加测试,就把用例写出来
不许只说「建议补充测试」。要补的测试直接写出来:测试名、输入、期望结果,能跑的代码。写不出来,说明你还没想清楚要测什么。
Don't just say "consider adding tests". Write the tests: name, input, expected result, runnable code. If you can't write them, you haven't worked out what to test yet.
小杜
已贴 1,040 张上墙共收到 0 个章