Skip to content

Commit b2d8e7c

Browse files
committed
fix code style
1 parent 1a0cd24 commit b2d8e7c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/test/java/com/thealgorithms/compression/BurrowsWheelerTransformTest.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
import static org.junit.jupiter.api.Assertions.assertEquals;
44
import static org.junit.jupiter.api.Assertions.assertNotEquals;
5-
import static org.junit.jupiter.api.Assertions.assertTrue;
65
import static org.junit.jupiter.api.Assertions.assertThrows;
6+
import static org.junit.jupiter.api.Assertions.assertTrue;
77

88
import 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

0 commit comments

Comments
 (0)