1
1
import { CircularDoublyLinkedList } from '../CircularDoublyLinkedList' // Adjust the import path as needed
2
2
3
- describe ( 'CircularDoublyLinkedList' , ( ) => {
4
- it ( 'Check append' , ( ) => {
3
+ describe ( 'CircularDoublyLinkedList' , ( ) => {
4
+ it ( 'Check append' , ( ) => {
5
5
const list = new CircularDoublyLinkedList ( )
6
6
7
7
list . append ( 1 )
@@ -11,7 +11,7 @@ describe ('CircularDoublyLinkedList', () => {
11
11
expect ( list . toString ( ) ) . toEqual ( '1 <-> 2' )
12
12
} )
13
13
14
- it ( 'Check insert' , ( ) => {
14
+ it ( 'Check insert' , ( ) => {
15
15
const list = new CircularDoublyLinkedList ( )
16
16
17
17
list . insert ( 0 , 1 )
@@ -21,7 +21,7 @@ describe ('CircularDoublyLinkedList', () => {
21
21
expect ( list . toString ( ) ) . toEqual ( '1 <-> 20' )
22
22
} )
23
23
24
- it ( 'Check removeAt' , ( ) => {
24
+ it ( 'Check removeAt' , ( ) => {
25
25
const list = new CircularDoublyLinkedList ( )
26
26
27
27
list . append ( 10 )
@@ -35,7 +35,7 @@ describe ('CircularDoublyLinkedList', () => {
35
35
expect ( list . toString ( ) ) . toEqual ( '40' )
36
36
} )
37
37
38
- it ( 'Check print' , ( ) => {
38
+ it ( 'Check print' , ( ) => {
39
39
const list = new CircularDoublyLinkedList ( )
40
40
41
41
list . append ( 20 )
@@ -44,7 +44,7 @@ describe ('CircularDoublyLinkedList', () => {
44
44
} ) . not . toThrow ( )
45
45
} )
46
46
47
- it ( 'Check isEmpty' , ( ) => {
47
+ it ( 'Check isEmpty' , ( ) => {
48
48
const list = new CircularDoublyLinkedList ( )
49
49
50
50
expect ( list . isEmpty ( ) ) . toEqual ( true )
0 commit comments