forked from pybamm-team/PyBaMM
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2415a72
commit a109848
Showing
3 changed files
with
25 additions
and
2 deletions.
There are no files selected for viewing
File renamed without changes.
13 changes: 13 additions & 0 deletions
13
tests/unit/test_experiments/test_experiment_step_termination.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# | ||
# Test the experiment steps | ||
# | ||
import pybamm | ||
import unittest | ||
|
||
|
||
class TestExperimentStepTermination(unittest.TestCase): | ||
def test_base_termination(self): | ||
term = pybamm.step.BaseTermination(1) | ||
self.assertEqual(term.value, 1) | ||
self.assertNotEqual(term, pybamm.step.BaseTermination(2)) | ||
self.assertNotEqual(term, pybamm.step.CurrentTermination(1)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters