You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/templates/pages/learn/tdd.hbs
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -186,7 +186,7 @@ slug: learn/
186
186
});
187
187
188
188
189
-
it('should be a awesome', function(done) {
189
+
it('should be equal to awesome', function(done) {
190
190
// This expect tests the value of the string.
191
191
expect(p5js).to.equal('awesome');
192
192
done();
@@ -203,7 +203,7 @@ slug: learn/
203
203
<pre><codeclass="language-javascript"><xmp>
204
204
these are my first tests for p5js
205
205
✓ should be a string
206
-
✓ should be a awesome
206
+
✓ should be equal to awesome
207
207
2 passing (14ms)
208
208
</xmp></code></pre>
209
209
</p>
@@ -220,7 +220,7 @@ slug: learn/
220
220
<pre><codeclass="language-javascript"><xmp>
221
221
these are my first tests for p5js
222
222
1) should be a string
223
-
2) should be a awesome
223
+
2) should be equal to awesome
224
224
225
225
0 passing (18ms)
226
226
2 failing
@@ -229,7 +229,7 @@ slug: learn/
229
229
AssertionError: expected 42 to be a string
230
230
at Context.<anonymous> (test/test.js:14:24)
231
231
232
-
2) these are my first tests for p5js should be a awesome:
232
+
2) these are my first tests for p5js should be equal to awesome:
233
233
AssertionError: expected 42 to equal 'awesome'
234
234
at Context.<anonymous> (test/test.js:21:21)
235
235
</xmp></code></pre>
@@ -248,7 +248,7 @@ slug: learn/
248
248
249
249
<h2>Test Driven Development</h2>
250
250
<p>
251
-
You are going to use Test Driven Development for the rest of this tutorial. The idea is you write your unit tests first, run them and watch them fail, and then add code to sketch.js to make the tests pass. This way you ensure you code is working as you expect every step of the way and that new code doesn’t break old code. Your goal is to create a ColorIncreaser class that:
251
+
You are going to use Test Driven Development for the rest of this tutorial. The idea is you write your unit tests first, run them and watch them fail, and then add code to sketch.js to make the tests pass. This way you ensure your code is working as you expect every step of the way and that new code doesn’t break old code. Your goal is to create a ColorIncreaser class that:
252
252
<ulstyle="padding: 0 0 0 40px;">
253
253
<li>takes in an integer as the value to increase each time called colorValueIncrease.</li>
254
254
<li>takes in an instance of the <ahref='http://p5js.org/reference/#/p5/color'>p5 color class.</a></li>
@@ -435,7 +435,7 @@ slug: learn/
435
435
436
436
437
437
it('should have rgb values 255, 255, 255 after calling increaseFillColor 16777215 times', function(done) {
438
-
//it is 256^2 - 1 because it starts with the color black
438
+
//it is 256^3 - 1 because it starts with the color black
0 commit comments