<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">import static org.junit.Assert.*;
import org.junit.Test;




public class phTest1 {

    @Test
    public void simpleCase() {
        PerfectHashing ph = new PerfectHashing(new String[]{"a","b","c","d"});
        assertTrue(ph.find("a"));
        assertTrue(ph.find("b"));
        assertTrue(ph.find("c"));
        assertTrue(ph.find("d"));

        assertFalse(ph.find("e"));
        assertFalse(ph.find("aa"));
    }

}
</pre></body></html>