Update article.md
This commit is contained in:
parent
d1100fc7e7
commit
75feb38bd1
1 changed files with 2 additions and 2 deletions
|
@ -159,7 +159,7 @@ We can select one of two ways to organize the test here:
|
||||||
assert.equal(pow(2, 3), 8);
|
assert.equal(pow(2, 3), 8);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("3 raised to power 3 is 27", function() {
|
it("3 raised to power 4 is 81", function() {
|
||||||
assert.equal(pow(3, 4), 81);
|
assert.equal(pow(3, 4), 81);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -182,7 +182,7 @@ The result:
|
||||||
|
|
||||||
[iframe height=250 src="pow-2" edit border="1"]
|
[iframe height=250 src="pow-2" edit border="1"]
|
||||||
|
|
||||||
As we could expect, the second test failed. Sure, our function always returns `8`, while the `assert` expects `27`.
|
As we could expect, the second test failed. Sure, our function always returns `8`, while the `assert` expects `81`.
|
||||||
|
|
||||||
## Improving the implementation
|
## Improving the implementation
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue