<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 phTest2 {

    @Test
    public void simpleCase() {
        PerfectHashing ph = new PerfectHashing(new int[]{1,2,3,4});
        assertTrue(ph.find(1));
        assertTrue(ph.find(2));
        assertTrue(ph.find(3));
        assertTrue(ph.find(4));

        assertFalse(ph.find(0));
        assertFalse(ph.find(5));
    }

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