fix(curriculum): add another element in test to ensure correct implementation of class (#44766)

This commit is contained in:
Matt
2022-01-13 21:41:29 +02:00
committed by GitHub
parent 8c5ac39dd2
commit 1fc0b73c3d

View File

@ -57,7 +57,8 @@ assert(
var test = new LinkedList(); var test = new LinkedList();
test.add('cat'); test.add('cat');
test.add('dog'); test.add('dog');
return test.head().next.element === 'dog'; test.add('fish');
return test.head().next.element === 'dog' && test.head().next.next.element === 'fish';
})() })()
); );
``` ```