diff --git a/tests/unit/test_parameters/test_parameter_values.py b/tests/unit/test_parameters/test_parameter_values.py index 3610b53424..7b5fd38bf0 100644 --- a/tests/unit/test_parameters/test_parameter_values.py +++ b/tests/unit/test_parameters/test_parameter_values.py @@ -267,6 +267,15 @@ def test_process_symbol(self): self.assertEqual(processed_a.value, 4) self.assertEqual(processed_x, x) + # process EvaluateAt + evaluate_at = pybamm.EvaluateAt(x, aa) + processed_evaluate_at = parameter_values.process_symbol(evaluate_at) + self.assertIsInstance(processed_evaluate_at, pybamm.EvaluateAt) + self.assertEqual(processed_evaluate_at.children[0], x) + self.assertEqual(processed_evaluate_at.position, 4) + with self.assertRaisesRegex(ValueError, "'position' in 'EvaluateAt'"): + parameter_values.process_symbol(pybamm.EvaluateAt(x, x)) + # process broadcast whole_cell = ["negative electrode", "separator", "positive electrode"] broad = pybamm.PrimaryBroadcast(a, whole_cell)