@Test
public void compactTest() {

    char[] letters =
            array( 'a', 'b', '\0', '\0', '\0', '\0', '\0', 'c', '\0', 'd', 'e' );
    letters = compact( letters );
    assertArrayEquals(
            array( 'a', 'b', 'c', 'd', 'e' ),
            letters
    );
}