This commit is contained in:
Zhicheng Wang 2016-05-09 19:56:20 +08:00
parent af7a2e874d
commit a2a0ff34c8
1 changed files with 3 additions and 3 deletions

View File

@ -5,14 +5,14 @@
1. They **guard** against breaking existing code (“regressions”) when we make changes. 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. 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, 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. 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 .alert.is-important
:marked :marked