valid factorial number update under the tests (#36792)
* valid factorial number update under the tests * Update curriculum/challenges/english/08-coding-interview-prep/rosetta-code/factorial.english.md Co-Authored-By: Parth Parth <34807532+thecodingaviator@users.noreply.github.com> * Update curriculum/challenges/english/08-coding-interview-prep/rosetta-code/factorial.english.md Co-Authored-By: Parth Parth <34807532+thecodingaviator@users.noreply.github.com> * Update curriculum/challenges/english/08-coding-interview-prep/rosetta-code/factorial.english.md Co-Authored-By: Parth Parth <34807532+thecodingaviator@users.noreply.github.com> * Removed redundant array in the tests
This commit is contained in:
committed by
Randell Dawson
parent
c483940da0
commit
5d946f3d77
@ -35,11 +35,11 @@ tests:
|
||||
- text: <code>factorial(2)</code> should return a number.
|
||||
testString: assert(typeof factorial(2) === 'number');
|
||||
- text: <code>factorial(3)</code> should return 6.
|
||||
testString: assert.equal(factorial(3),results[0]);
|
||||
- text: <code>factorial(3)</code> should return 120.
|
||||
testString: assert.equal(factorial(5),results[1]);
|
||||
- text: <code>factorial(3)</code> should return 3,628,800.
|
||||
testString: assert.equal(factorial(10),results[2]);
|
||||
testString: assert.equal(factorial(3), 6);
|
||||
- text: <code>factorial(5)</code> should return 120.
|
||||
testString: assert.equal(factorial(5), 120);
|
||||
- text: <code>factorial(10)</code> should return 3,628,800.
|
||||
testString: assert.equal(factorial(10), 3628800);
|
||||
|
||||
```
|
||||
|
||||
@ -59,15 +59,6 @@ function factorial(n) {
|
||||
</div>
|
||||
|
||||
|
||||
### After Test
|
||||
<div id='js-teardown'>
|
||||
|
||||
```js
|
||||
const results=[6,120,3628800];
|
||||
```
|
||||
|
||||
</div>
|
||||
|
||||
</section>
|
||||
|
||||
## Solution
|
||||
|
Reference in New Issue
Block a user