From 58ca8ddf2a4878aa37db56a05a6a4e9709c5d490 Mon Sep 17 00:00:00 2001 From: Randell Dawson <5313213+RandellDawson@users.noreply.github.com> Date: Sat, 30 Nov 2019 15:30:10 -0800 Subject: [PATCH] fix: correct function name in test text (#37839) --- .../create-a-priority-queue-class.english.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/curriculum/challenges/english/08-coding-interview-prep/data-structures/create-a-priority-queue-class.english.md b/curriculum/challenges/english/08-coding-interview-prep/data-structures/create-a-priority-queue-class.english.md index 542084d48af..62b29f28222 100644 --- a/curriculum/challenges/english/08-coding-interview-prep/data-structures/create-a-priority-queue-class.english.md +++ b/curriculum/challenges/english/08-coding-interview-prep/data-structures/create-a-priority-queue-class.english.md @@ -26,15 +26,15 @@ The enqueue should accept items with the format shown above ( ```yml tests: - - text: Your Queue class should have a enqueue method. + - text: Your PriorityQueue class should have a enqueue method. testString: assert((function(){var test = new PriorityQueue(); return (typeof test.enqueue === 'function')}())); - - text: Your Queue class should have a dequeue method. + - text: Your PriorityQueue class should have a dequeue method. testString: assert((function(){var test = new PriorityQueue(); return (typeof test.dequeue === 'function')}())); - - text: Your Queue class should have a size method. + - text: Your PriorityQueue class should have a size method. testString: assert((function(){var test = new PriorityQueue(); return (typeof test.size === 'function')}())); - - text: Your Queue class should have an isEmpty method. + - text: Your PriorityQueue class should have an isEmpty method. testString: assert((function(){var test = new PriorityQueue(); return (typeof test.isEmpty === 'function')}())); - - text: Your PriorityQueue should correctly keep track of the current number of items using the size method as items are enqueued and dequeued. + - text: Your PriorityQueue class should correctly keep track of the current number of items using the size method as items are enqueued and dequeued. testString: assert((function(){var test = new PriorityQueue(); test.enqueue(['David Brown', 2]); test.enqueue(['Jon Snow', 1]); var size1 = test.size(); test.dequeue(); var size2 = test.size(); test.enqueue(['A', 3]); test.enqueue(['B', 3]); test.enqueue(['C', 3]); return (size1 === 2 && size2 === 1 && test.size() === 4)}())); - text: The isEmpty method should return true when the queue is empty. testString: assert((function(){var test = new PriorityQueue(); test.enqueue(['A', 1]); test.enqueue(['B', 1]); test.dequeue(); var first = test.isEmpty(); test.dequeue(); return (!first && test.isEmpty()); }()));