@Test public void test() { assertThat("0 1", pe8.pe8(0), is(1)); assertThat("1 9", pe8.pe8(1), is(9)); }
@Test public void testProduct() { assertThat("0 1", pe8.product("", 0), is(1)); assertThat("123456789 1 9", pe8.product("123456789", 1), is(9)); assertThat("123456789 2 72", pe8.product("123456789", 2), is(72)); }
@Before public void setUp() throws Exception { pe8.setFname("../../res/pe8.txt"); }