Skip to content

Commit

Permalink
Add tests for setters of forward_volume and reverse_volume
Browse files Browse the repository at this point in the history
  • Loading branch information
paulromano committed Feb 15, 2024
1 parent 67d4340 commit 4357068
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/test_basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,14 @@ def test_surface(request):
assert s1.forward_volume == model.volumes[1]
assert s1.reverse_volume == model.volumes[2]

s1.forward_volume = model.volumes[3]
assert s1.forward_volume == model.volumes[3]
assert s1.surf_sense == [model.volumes[3], model.volumes[2]]

s1.reverse_volume = model.volumes[1]
assert s1.reverse_volume == model.volumes[1]
assert s1.surf_sense == [model.volumes[3], model.volumes[1]]


def test_hash(request):
test_file = str(request.path.parent / 'fuel_pin.h5m')
Expand Down

0 comments on commit 4357068

Please sign in to comment.