@Test public void testXYRC() { BitMatrix bm = new BitMatrix(4, 4); bm.setRC(1, 2, true); Assert.assertTrue(bm.getXY(2, 2)); }
@Test public void testSetGet() { BitMatrix bm = new BitMatrix(4, 3); bm.setRC(1, 2, true); Assert.assertTrue(bm.getRC(1, 2)); bm.setXY(2, 1, true); Assert.assertTrue(bm.getXY(2, 1)); }