Skip to content

Commit

Permalink
add test that catch expand list failure
Browse files Browse the repository at this point in the history
  • Loading branch information
Edgar-21 committed Feb 17, 2025
1 parent 7925e5d commit f1ef795
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,10 @@ def test_dagmc_renumbering():
assert len(combined_model.volumes) == num_vol_exp
assert max(combined_model.volumes_by_id.keys()) == max_vol_id_exp
assert all(mat in mats_exp for mat in mats)


def test_expand_list():
test_values = np.linspace(1, 10, 10)
exp_expanded_list = np.linspace(1, 10, 19)
expanded_list = expand_list(test_values, 19)
assert np.allclose(exp_expanded_list, expanded_list)

0 comments on commit f1ef795

Please sign in to comment.