fix(curriculum): quotes in tests (#18828)
* fix(curriculum): tests quotes * fix(curriculum): fill seed-teardown * fix(curriculum): fix tests and remove unneeded seed-teardown
This commit is contained in:
committed by
mrugesh mohapatra
parent
96eb124163
commit
79d9012432
@ -22,19 +22,19 @@ The Gamma function can be defined as:
|
||||
```yml
|
||||
tests:
|
||||
- text: <code>gamma</code> should be a function.
|
||||
testString: 'assert(typeof gamma=="function","<code>gamma</code> should be a function.")'
|
||||
- text: '<code>gamma("+tests[0]+")</code> should return a number.'
|
||||
testString: 'assert(typeof gamma(tests[0])=="number","<code>gamma("+tests[0]+")</code> should return a number.")'
|
||||
- text: '<code>gamma("+tests[0]+")</code> should return <code>"+results[0]+"</code>.'
|
||||
testString: 'assert.equal(gamma(tests[0]),results[0],"<code>gamma("+tests[0]+")</code> should return <code>"+results[0]+"</code>.")'
|
||||
- text: '<code>gamma("+tests[1]+")</code> should return <code>"+results[1]+"</code>.'
|
||||
testString: 'assert.equal(gamma(tests[1]),results[1],"<code>gamma("+tests[1]+")</code> should return <code>"+results[1]+"</code>.")'
|
||||
- text: '<code>gamma("+tests[2]+")</code> should return <code>"+results[2]+"</code>.'
|
||||
testString: 'assert.equal(gamma(tests[2]),results[2],"<code>gamma("+tests[2]+")</code> should return <code>"+results[2]+"</code>.")'
|
||||
- text: '<code>gamma("+tests[3]+")</code> should return <code>"+results[3]+"</code>.'
|
||||
testString: 'assert.equal(gamma(tests[3]),results[3],"<code>gamma("+tests[3]+")</code> should return <code>"+results[3]+"</code>.")'
|
||||
- text: '<code>gamma("+tests[4]+")</code> should return <code>"+results[4]+"</code>.'
|
||||
testString: 'assert.equal(gamma(tests[4]),results[4],"<code>gamma("+tests[4]+")</code> should return <code>"+results[4]+"</code>.")'
|
||||
testString: assert(typeof gamma=='function','<code>gamma</code> should be a function.')
|
||||
- text: <code>gamma(.1)</code> should return a number.
|
||||
testString: assert(typeof gamma(.1)=='number','<code>gamma(.1)</code> should return a number.')
|
||||
- text: <code>gamma(.1)</code> should return <code>9.513507698668736</code>.
|
||||
testString: assert.equal(gamma(.1), 9.513507698668736,'<code>gamma(.1)</code> should return <code>9.513507698668736</code>.')
|
||||
- text: <code>gamma(.2)</code> should return <code>4.590843711998803</code>.
|
||||
testString: assert.equal(gamma(.2), 4.590843711998803,'<code>gamma(.2)</code> should return <code>4.590843711998803</code>.')
|
||||
- text: <code>gamma(.3)</code> should return <code>2.9915689876875904</code>.
|
||||
testString: assert.equal(gamma(.3), 2.9915689876875904,'<code>gamma(.3)</code> should return <code>2.9915689876875904</code>.')
|
||||
- text: <code>gamma(.4)</code> should return <code>2.218159543757687</code>.
|
||||
testString: assert.equal(gamma(.4), 2.218159543757687,'<code>gamma(.4)</code> should return <code>2.218159543757687</code>.')
|
||||
- text: <code>gamma(.5)</code> should return <code>1.7724538509055159</code>.
|
||||
testString: assert.equal(gamma(.5), 1.7724538509055159,'<code>gamma(.5)</code> should return <code>1.7724538509055159</code>.')
|
||||
|
||||
```
|
||||
|
||||
@ -53,16 +53,6 @@ function gamma (x) {
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
### After Test
|
||||
<div id='js-teardown'>
|
||||
|
||||
```js
|
||||
console.info('after the test');
|
||||
```
|
||||
|
||||
</div>
|
||||
|
||||
</section>
|
||||
|
||||
## Solution
|
||||
|
Reference in New Issue
Block a user