fix(curriculum): add another element in test to ensure correct implementation of class (#44766)
This commit is contained in:
@ -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';
|
||||
})()
|
||||
);
|
||||
```
|
||||
|
Reference in New Issue
Block a user