fix(seed): Fixed issue with atLeast test always failing (#16717)
Closes #16668
This commit is contained in:
committed by
Stuart Taylor
parent
427e279b86
commit
399ba38fb0
@ -316,15 +316,15 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"text": "Choose the right assertion - isBelow vs. isAtLeast",
|
"text": "Choose the right assertion - isBelow vs. isAtLeast",
|
||||||
"testString": "getUserInput => $.get(getUserInput('url') + '/_api/get-tests?type=unit&n=8').then(data => { assert.equal(data.assertions[0].method, 'isAtLeast', '2 * Math.random() is at least 0'); }, xhr => { throw new Error(xhr.responseText); })"
|
"testString": "getUserInput => $.get(getUserInput('url') + '/_api/get-tests?type=unit&n=8').then(data => { assert.equal(data.assertions[1].method, 'isAtLeast', '2 * Math.random() is at least 0'); }, xhr => { throw new Error(xhr.responseText); })"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"text": "Choose the right assertion - isBelow vs. isAtLeast",
|
"text": "Choose the right assertion - isBelow vs. isAtLeast",
|
||||||
"testString": "getUserInput => $.get(getUserInput('url') + '/_api/get-tests?type=unit&n=8').then(data => { assert.equal(data.assertions[0].method, 'isBelow', '1 is smaller than 2'); }, xhr => { throw new Error(xhr.responseText); })"
|
"testString": "getUserInput => $.get(getUserInput('url') + '/_api/get-tests?type=unit&n=8').then(data => { assert.equal(data.assertions[2].method, 'isBelow', '1 is smaller than 2'); }, xhr => { throw new Error(xhr.responseText); })"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"text": "Choose the right assertion - isBelow vs. isAtLeast",
|
"text": "Choose the right assertion - isBelow vs. isAtLeast",
|
||||||
"testString": "getUserInput => $.get(getUserInput('url') + '/_api/get-tests?type=unit&n=8').then(data => { assert.equal(data.assertions[0].method, 'isBelow', '2/3 (0.6666) is smaller than 1'); }, xhr => { throw new Error(xhr.responseText); })"
|
"testString": "getUserInput => $.get(getUserInput('url') + '/_api/get-tests?type=unit&n=8').then(data => { assert.equal(data.assertions[3].method, 'isBelow', '2/3 (0.6666) is smaller than 1'); }, xhr => { throw new Error(xhr.responseText); })"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"solutions": [],
|
"solutions": [],
|
||||||
|
Reference in New Issue
Block a user