Skip to content

Commit

Permalink
coverage again
Browse files Browse the repository at this point in the history
  • Loading branch information
valentinsulzer committed Dec 8, 2023
1 parent fa679d1 commit 99ad3d0
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,10 @@ class TestExperimentStepTermination(unittest.TestCase):
def test_base_termination(self):
term = pybamm.step.BaseTermination(1)
self.assertEqual(term.value, 1)

with self.assertRaises(NotImplementedError):
term.get_event(None, None)

self.assertEqual(term, pybamm.step.BaseTermination(1))
self.assertNotEqual(term, pybamm.step.BaseTermination(2))
self.assertNotEqual(term, pybamm.step.CurrentTermination(1))

0 comments on commit 99ad3d0

Please sign in to comment.