From 2f103e8ee8c3d52c44deb94341ea4e27aa561f62 Mon Sep 17 00:00:00 2001 From: Matt <50872444+MattDClarke@users.noreply.github.com> Date: Mon, 3 Jan 2022 14:31:36 +0200 Subject: [PATCH] fix(curriculum): improved test for linked list challenge (#44569) * fix: improved test for linked list challenge * fix: improved test for linked list challenge - fix * fix: removed brackets --- .../add-elements-at-a-specific-index-in-a-linked-list.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/curriculum/challenges/english/10-coding-interview-prep/data-structures/add-elements-at-a-specific-index-in-a-linked-list.md b/curriculum/challenges/english/10-coding-interview-prep/data-structures/add-elements-at-a-specific-index-in-a-linked-list.md index 3ca9c8c0f4..9e2954f8a3 100644 --- a/curriculum/challenges/english/10-coding-interview-prep/data-structures/add-elements-at-a-specific-index-in-a-linked-list.md +++ b/curriculum/challenges/english/10-coding-interview-prep/data-structures/add-elements-at-a-specific-index-in-a-linked-list.md @@ -24,8 +24,8 @@ assert( var test = new LinkedList(); test.add('cat'); test.add('dog'); - test.addAt(0, 'cat'); - return test.head().element === 'cat'; + test.addAt(0, 'fish'); + return test.head().element === 'fish' && test.head().next.element === 'cat'; })() ); ```