@Test public void testSpRemoveFunction() { Game g = new spGame(); g.buildDeck(); g.customDeal(0, 3, 6, 9); g.remove(2); assertEquals(0, g.cols.get(2).size()); }
@Test public void testSpCustomDeal() { Game g = new spGame(); g.buildDeck(); g.customDeal(0, 3, 6, 9); assertEquals("1Clubs", g.cols.get(0).get(0).toString()); assertEquals("2Clubs", g.cols.get(1).get(0).toString()); assertEquals("3Clubs", g.cols.get(2).get(0).toString()); assertEquals("4Clubs", g.cols.get(3).get(0).toString()); }
@Test public void testRemoveFunction() { Game g = new Game(); g.buildDeck(); g.customDeal(0, 3, 6, 9); g.remove(2); assertEquals(0, g.cols.get(2).size()); // make sure that we did not remove from an empty column g.remove(2); assertEquals(0, g.cols.get(2).size()); }