mirror of
https://github.moeyy.xyz/https://github.com/trekhleb/javascript-algorithms.git
synced 2024-09-20 07:43:04 +08:00
maintain current test coverage
This commit is contained in:
parent
dfdb6ec77d
commit
a03f49225d
@ -43,6 +43,9 @@ describe('LinkedList', () => {
|
||||
linkedList.insert(2, 1);
|
||||
linkedList.insert(1, -7);
|
||||
linkedList.insert(10, 9);
|
||||
|
||||
expect(linkedList.toString()).toBe('1,4,2,3,10');
|
||||
|
||||
linkedList.insert(7, 5);
|
||||
expect(linkedList.toString()).toBe('1,4,2,3,10,7');
|
||||
expect(linkedList.head.toString()).toBe('1');
|
||||
|
Loading…
Reference in New Issue
Block a user