added test that cathces the bug

This commit is contained in:
RemDelaporteMathurin 2023-01-26 13:55:22 -05:00
parent 3f5b90042c
commit 396ecdf02c

View file

@ -0,0 +1,9 @@
import openmc
import pytest
def test_raises_error_when_flat():
with pytest.raises(ValueError):
mesh = openmc.RegularMesh()
mesh.dimension = [50, 50, 1]
mesh.lower_left = [-25, -25, 0]
mesh.upper_right = [25, 25, 0]