review
This commit is contained in:
parent
af7a2e874d
commit
a2a0ff34c8
|
@ -5,14 +5,14 @@
|
|||
|
||||
1. They **guard** against breaking existing code (“regressions”) when we make changes.
|
||||
|
||||
1. 当我们改变代码是,他们**守护**已有代码,以防被破坏。
|
||||
1. 当我们改变代码时,它们**守护**已有代码,以防被破坏。
|
||||
1. They **clarify** what the code does both when used as intended and when faced with deviant conditions.
|
||||
|
||||
1. 在我们正确使用代码和面对异常情况时,他们**澄清**代码做什么。
|
||||
1. 在我们正确使用代码和面对异常情况时,它们**澄清**代码做什么。
|
||||
1. They **reveal** mistakes in design and implementation. Tests force us to look at our code from many angles. When a part of our application seems hard to test,
|
||||
we may have discovered a design flaw, something we can cure now rather than later when it becomes expensive to fix.
|
||||
|
||||
1.他们**揭露**我们设计的执行的错误。测试强迫我们从多个角度看代码。当应用程序的一个部分看起来很难测试,我们可能会发现设计缺陷,这是我们可以立刻修复的,而不是等到它变的很难修复的时候。
|
||||
1.它们**揭露**我们设计的执行的错误。测试强迫我们从多个角度看代码。当应用程序的一个部分看起来很难测试,我们可能会发现设计缺陷,这是我们可以立刻修复的,而不是等到它变的很难修复的时候。
|
||||
|
||||
.alert.is-important
|
||||
:marked
|
||||
|
|
Loading…
Reference in New Issue