def test(self): with self.assertRaises(sp.spritePlannerException) as context: ccc0 = ca.bl_tr_odd_p_mid_nybble_switch_srca() cc0 = cap.polisher(ca=ccc0) s = sp.spritePlanner(cc0.perform()) s.getMap() self.assertIsInstance(context.exception, sp.spritePlannerException)
def test(self): c = ca.bl_tr_odd_p_mid_nybble_switch_srca() c3 = cap.polisher(minimumArea=75, ca=c) self.assertEqual([ '110000001110000111010001', '101110110101110010000100', '100010110100010011100100', '000100000000110000001101', '001100000001001100010011', '100001111100010001000101', '101101111101110101011100', '000000000000000001000000', '000000000000000010000001', '011111111111111000111100', '001111111111110010011000', '001111111111100010010000', '001111111111000000000000', '000111111110000000000000', '100000000001000000000000', '010000000000100000000000', '000000000000000000000000', '000000000000000000000000', '000000000000000000000000', '000000000000000000000000', '000000000000000000000000', '000000000000000000000000', '000000000000000000000000', '000000000000000000000000' ], c3.perform())
def test(self): ccc0 = ca.bl_tr_odd_p_mid_nybble_switch_srca() cc0 = cap.polisher(ca=ccc0) s = sp.spritePlanner(cc0.perform()) s.perform() self.assertEqual([ '111111111111111111111111', '111111111111111111100111', '111111111111111111100111', 'A00100000000111100001111', '001100000001111100011111', '100001111100010001000101', '101101111101110101011100', '000000000000000001000000', '000000000000000010000001', '011111111111111000111100', '001111111111110010011000', '001111111111100010010000', '00111111111E000000000000', '000111111110000000000000', '100000000001000000000000', '010000000000100000000000', '000000000000000000000000', '000000000000000000000000', '000000000000000000000000', '000000000000000000000000', '000000000000000000000000', '000000000000000000000000', '000000000000000000000000', '00000000000000000000000G' ], s.getMap())
def test(self): with self.assertRaises(cap.polisherException) as context: cap.polisher(minimumArea=100).perform() self.assertTrue("" in context.exception)