@@ -90,7 +90,7 @@ assert condition, "message"
90
90
91
91
---
92
92
93
- ## Unit testing
93
+ ## Unit Testing
94
94
95
95
- Catching errors with assertions is good but preventing them is better!
96
96
- A * unit* is a single function in one situation.
@@ -101,7 +101,7 @@ assert condition, "message"
101
101
102
102
---
103
103
104
- ## Integration testing
104
+ ## Integration Testing
105
105
106
106
- Test whether several units work in conjunction.
107
107
- * Integrate* units and test them together in an * integration* test.
@@ -111,7 +111,7 @@ assert condition, "message"
111
111
112
112
---
113
113
114
- ## Regression testing
114
+ ## Regression Testing
115
115
116
116
- Generating an expected result is not possible in some situations.
117
117
- Compare the current actual result with a previous actual result.
@@ -129,7 +129,7 @@ assert condition, "message"
129
129
130
130
---
131
131
132
- ## Comparing floating -point variables
132
+ ## Comparing Floating -point Variables
133
133
134
134
- Very often quantities in simulation software are ` float ` / ` double ` .
135
135
- Such quantities cannot be compared to exact values, an approximation is necessary.
@@ -139,7 +139,7 @@ assert condition, "message"
139
139
140
140
---
141
141
142
- ## Test-driven development (TDD)
142
+ ## Test-driven Development (TDD)
143
143
144
144
- Principle of writing a test and then write a code to fulfill the test.
145
145
- Advantages:
@@ -155,7 +155,7 @@ Source: https://en.wikipedia.org/wiki/Test-driven_development
155
155
156
156
---
157
157
158
- ## Verifying a test
158
+ ## Verifying a Test
159
159
160
160
- Test written as part of a bug-fix:
161
161
- Reproduce the bug in the test by ensuring that the test fails.
0 commit comments