From 1c0dc040567daafcc616a667bc3064cbbc3ce7ff Mon Sep 17 00:00:00 2001 From: Ty Mick Date: Sun, 31 May 2020 09:18:12 -0400 Subject: [PATCH] Fix false negatives in bubble sort test (#38801) --- .../algorithms/implement-bubble-sort.english.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/curriculum/challenges/english/10-coding-interview-prep/algorithms/implement-bubble-sort.english.md b/curriculum/challenges/english/10-coding-interview-prep/algorithms/implement-bubble-sort.english.md index 729bfd78a4..67ddd3b124 100644 --- a/curriculum/challenges/english/10-coding-interview-prep/algorithms/implement-bubble-sort.english.md +++ b/curriculum/challenges/english/10-coding-interview-prep/algorithms/implement-bubble-sort.english.md @@ -32,7 +32,7 @@ tests: - text: bubbleSort should return an array that is unchanged except for order. testString: assert.sameMembers(bubbleSort([1,4,2,8,345,123,43,32,5643,63,123,43,2,55,1,234,92]), [1,4,2,8,345,123,43,32,5643,63,123,43,2,55,1,234,92]); - text: bubbleSort should not use the built-in .sort() method. - testString: assert(!code.match(/\.?[\s\S]*?sort/)); + testString: assert(!code.match(/\.\s*sort\s*\(/)); ```