@@ -282,15 +282,13 @@ TEST_CASE("Data_Structures_Doubly_Linked_List", "[Doubly_Linked_List][Data_Struc
282282 int arr2StartSize = 3 ;
283283 const int intArray3[6 ] = {0 , 1 , 2 , 3 , 4 , 5 };
284284 int arr3StartSize = 6 ;
285-
286- const int intArray4[3 ] = {1 ,2 ,4 };
285+ const int intArray4[3 ] = {1 , 2 , 4 };
287286 int arr4StartSize = 3 ;
287+ const int intArray5[6 ] = {4 , 5 , 3 , 2 , 1 , 0 };
288+ int arr5StartSize = 6 ;
288289
289- DSDoublyLL<int > numList1;
290+ DSDoublyLL<int > numList1, numList2, numList3, numList4, numList5 ;
290291 DSDoublyLL<int > numList1Copy;
291- DSDoublyLL<int > numList2;
292- DSDoublyLL<int > numList3;
293- DSDoublyLL<int > numList4;
294292
295293 for (int element : intArray1){
296294 numList1.pushBack (element);
@@ -303,6 +301,7 @@ TEST_CASE("Data_Structures_Doubly_Linked_List", "[Doubly_Linked_List][Data_Struc
303301
304302 numList3 = DSDoublyLL<int >(intArray3, arr3StartSize);
305303 numList4 = DSDoublyLL<int >(intArray4, arr4StartSize);
304+ numList5 = DSDoublyLL<int >(intArray5, arr5StartSize);
306305
307306
308307 SECTION (" Comparison Operators" ){
@@ -317,6 +316,8 @@ TEST_CASE("Data_Structures_Doubly_Linked_List", "[Doubly_Linked_List][Data_Struc
317316 numList1 = numList1Copy;
318317
319318 REQUIRE (numList1 != numList2);
319+
320+ REQUIRE (numList3.unorderedEquals (numList5));
320321 }
321322
322323 SECTION (" indexing" ){
0 commit comments