From 9b76d25f3262b5a38a4544a9e6952b925314e2cb Mon Sep 17 00:00:00 2001 From: Peter Weinberg Date: Mon, 15 May 2017 19:10:32 -0400 Subject: [PATCH] fix(challenge): fix bug in learn a stack challenge --- .../coding-interview-data-structure-questions.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 81ee29b1d7..20bb62a985 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 @@ -64,7 +64,7 @@ "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(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.');" + "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": [],