File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
src/test/java/com/thealgorithms/compression Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 22
33import static org .junit .jupiter .api .Assertions .assertEquals ;
44import static org .junit .jupiter .api .Assertions .assertNotEquals ;
5- import static org .junit .jupiter .api .Assertions .assertTrue ;
65import static org .junit .jupiter .api .Assertions .assertThrows ;
6+ import static org .junit .jupiter .api .Assertions .assertTrue ;
77
88import org .junit .jupiter .api .Test ;
99
@@ -84,6 +84,8 @@ public void testTransformNull() {
8484 public void testInverseTransformNullString () {
8585 // bwtString == null
8686 assertEquals ("" , BurrowsWheelerTransform .inverseTransform (null , 1 ));
87+ // bwtString.isEmpty()
88+ assertEquals ("" , BurrowsWheelerTransform .inverseTransform ("" , 0 ));
8789 }
8890
8991 @ Test
@@ -106,6 +108,7 @@ public void testBWTResultHelpers() {
106108 BurrowsWheelerTransform .BWTResult res3 = new BurrowsWheelerTransform .BWTResult ("other" , 4 );
107109 BurrowsWheelerTransform .BWTResult res4 = new BurrowsWheelerTransform .BWTResult ("annb$aa" , 1 );
108110
111+ assertEquals (res1 , res1 );
109112 assertEquals (res1 , res2 );
110113 assertNotEquals (res1 , null ); // obj == null
111114 assertNotEquals (res1 , new Object ()); // different class
You can’t perform that action at this time.
0 commit comments