Skip to content
Snippets Groups Projects
Commit e256a76e authored by André Bargull's avatar André Bargull
Browse files

Correct Array.prototype.fill tests (Fixes #63)

The expected results weren't correct.
parent 64756c25
No related branches found
No related tags found
No related merge requests found
......@@ -12,7 +12,7 @@ runTestCase(function () {
var testArr = new Array('testString', 'anotherTestString', 3),
updatedArr = testArr.fill('newValue', 1, 3);
if (updatedArr[3] !== 'newValue') {
if (updatedArr[3] !== void 0) {
return false;
}
......@@ -20,11 +20,15 @@ runTestCase(function () {
return false;
}
if (updatedArr[1] !== 'newValue') {
return false;
}
if (updatedArr[0] !== 'testString') {
return false;
}
if (updatedArr.length !== 4) {
if (updatedArr.length !== 3) {
return false;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment