Skip to content

Commit 7b54792

Browse files
authored
Merge pull request #271 from OsakaStarbux/patch-3
Fix typos
2 parents 1fe15a1 + 42eadc5 commit 7b54792

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/templates/pages/learn/tdd.hbs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ slug: learn/
186186
});
187187

188188

189-
it('should be a awesome', function(done) {
189+
it('should be equal to awesome', function(done) {
190190
// This expect tests the value of the string.
191191
expect(p5js).to.equal('awesome');
192192
done();
@@ -203,7 +203,7 @@ slug: learn/
203203
<pre><code class="language-javascript"><xmp>
204204
these are my first tests for p5js
205205
✓ should be a string
206-
✓ should be a awesome
206+
✓ should be equal to awesome
207207
2 passing (14ms)
208208
</xmp></code></pre>
209209
</p>
@@ -220,7 +220,7 @@ slug: learn/
220220
<pre><code class="language-javascript"><xmp>
221221
these are my first tests for p5js
222222
1) should be a string
223-
2) should be a awesome
223+
2) should be equal to awesome
224224

225225
0 passing (18ms)
226226
2 failing
@@ -229,7 +229,7 @@ slug: learn/
229229
AssertionError: expected 42 to be a string
230230
at Context.<anonymous> (test/test.js:14:24)
231231

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:
233233
AssertionError: expected 42 to equal 'awesome'
234234
at Context.<anonymous> (test/test.js:21:21)
235235
</xmp></code></pre>
@@ -248,7 +248,7 @@ slug: learn/
248248

249249
<h2>Test Driven Development</h2>
250250
<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:
252252
<ul style="padding: 0 0 0 40px;">
253253
<li>takes in an integer as the value to increase each time called colorValueIncrease.</li>
254254
<li>takes in an instance of the <a href='http://p5js.org/reference/#/p5/color'>p5 color class.</a></li>
@@ -435,7 +435,7 @@ slug: learn/
435435

436436

437437
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
439439
for (var count = 0; count < 16777215; count += 1) {
440440
colorIncreaser.increaseFillColor()
441441
}

0 commit comments

Comments
 (0)