diff --git a/challenges/08-coding-interview-questions-and-take-home-assignments/coding-interview-data-structure-questions.json b/challenges/08-coding-interview-questions-and-take-home-assignments/coding-interview-data-structure-questions.json index 8fa8ceb91c4..20806f10786 100644 --- a/challenges/08-coding-interview-questions-and-take-home-assignments/coding-interview-data-structure-questions.json +++ b/challenges/08-coding-interview-questions-and-take-home-assignments/coding-interview-data-structure-questions.json @@ -63,7 +63,8 @@ "tests": [ "assert(homeworkStack.length === 4, 'message: homeworkStack should only contain 4 elements.');", "assert(homeworkStack[3] === 'CS50', 'message: The last element in homeworkStack should be \"CS50\".');", - "assert(homeworkStack.indexOf('PSY44') === -1, 'message: homeworkStack should not contain \"PSY44\".');" + "assert(homeworkStack.indexOf('PSY44') === -1, 'message: homeworkStack should not contain \"PSY44\".');", + "assert(code.match(/=/g).length === 1 && /homeworkStack\\s*=\\s*\\[\"BIO12\"\\s*,\\s*\"HIS80\"\\s*,\\s*\"MAT122\"\\s*,\\s*\"PSY44\"\\]/.test(code)), 'message: The initial declaration of the homeworkStack should not be changed.');" ], "solutions": [], "hints": [],