Skip to content

Commit

Permalink
Update CircularDoublyLinkedList.test.js
Browse files Browse the repository at this point in the history
  • Loading branch information
debnath003 authored Oct 3, 2023
1 parent 808d740 commit 393e591
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { CircularDoublyLinkedList } from '../CircularDoublyLinkedList' // Adjust the import path as needed

describe ('CircularDoublyLinkedList', () => {
it ('Check append', () => {
describe('CircularDoublyLinkedList', () => {
it('Check append', () => {
const list = new CircularDoublyLinkedList()

list.append(1)
Expand All @@ -11,7 +11,7 @@ describe ('CircularDoublyLinkedList', () => {
expect(list.toString()).toEqual('1 <-> 2')
})

it ('Check insert', () => {
it('Check insert', () => {
const list = new CircularDoublyLinkedList()

list.insert(0, 1)
Expand All @@ -21,7 +21,7 @@ describe ('CircularDoublyLinkedList', () => {
expect(list.toString()).toEqual('1 <-> 20')
})

it ('Check removeAt', () => {
it('Check removeAt', () => {
const list = new CircularDoublyLinkedList()

list.append(10)
Expand All @@ -35,7 +35,7 @@ describe ('CircularDoublyLinkedList', () => {
expect(list.toString()).toEqual('40')
})

it ('Check print', () => {
it('Check print', () => {
const list = new CircularDoublyLinkedList()

list.append(20)
Expand All @@ -44,7 +44,7 @@ describe ('CircularDoublyLinkedList', () => {
}).not.toThrow()
})

it ('Check isEmpty', () => {
it('Check isEmpty', () => {
const list = new CircularDoublyLinkedList()

expect(list.isEmpty()).toEqual(true)
Expand Down

0 comments on commit 393e591

Please sign in to comment.