def test_eliminate_number_not_in_hash(self): Tarea4.c = 6543211 Tarea4.a = 1234562 hash_table = [-1] * hash_len self.assertEqual(0, Tarea4.eliminar(hash_table, hash_len, 61235))
def test_eliminate_number_in_hash(self): Tarea4.c = 2 Tarea4.a = 6000002 hash_table = [-1] * hash_len hash_table[866] = 78432 self.assertEqual(1, Tarea4.eliminar(hash_table, hash_len, 78432))