Skip to content

Commit

Permalink
Add boolean test for pint unit column to test_results.py
Browse files Browse the repository at this point in the history
  • Loading branch information
mcdo0486 committed Jun 26, 2023
1 parent 931c3bb commit e01ce29
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/experiment/test_results.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@ def test_csv_formatter_format(self):
('string', "abcdef", "abcdef"),
('count', 9 * ureg.dimensionless, "9"),
('boolean', True, "True"),
('numpy (V)', np.float64(1.1), "1.1")
('numpy (V)', np.float64(1.1), "1.1"),
('boolean nan (V)', True, "nan"),
))
def test_unitful(self, head, value, result):
"""Test, whether units are appended correctly"""
Expand Down

0 comments on commit e01ce29

Please sign in to comment.