Skip to content

Commit

Permalink
pybamm-team#2188 coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
rtimms authored and js1tr3 committed Aug 12, 2024
1 parent f2502cb commit 81c0a89
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/unit/test_parameters/test_parameter_values.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 81c0a89

Please sign in to comment.