From 1fc0b73c3d525eff404fb2110096d0c0d9334a58 Mon Sep 17 00:00:00 2001 From: Matt <50872444+MattDClarke@users.noreply.github.com> Date: Thu, 13 Jan 2022 21:41:29 +0200 Subject: [PATCH] fix(curriculum): add another element in test to ensure correct implementation of class (#44766) --- .../data-structures/create-a-linked-list-class.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/curriculum/challenges/english/10-coding-interview-prep/data-structures/create-a-linked-list-class.md b/curriculum/challenges/english/10-coding-interview-prep/data-structures/create-a-linked-list-class.md index 0c768cf0a2..d52a34cab7 100644 --- a/curriculum/challenges/english/10-coding-interview-prep/data-structures/create-a-linked-list-class.md +++ b/curriculum/challenges/english/10-coding-interview-prep/data-structures/create-a-linked-list-class.md @@ -57,7 +57,8 @@ assert( var test = new LinkedList(); test.add('cat'); test.add('dog'); - return test.head().next.element === 'dog'; + test.add('fish'); + return test.head().next.element === 'dog' && test.head().next.next.element === 'fish'; })() ); ```