# Check if the particle's best position and error are updated correctly self.assertEqual(particle.pos_best_i, [1, 2]) self.assertEqual(particle.err_best_i, 3) def ...