mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 05:35:49 -04:00
added test that cathces the bug
This commit is contained in:
parent
3f5b90042c
commit
396ecdf02c
1 changed files with 9 additions and 0 deletions
9
tests/unit_tests/test_mesh.py
Normal file
9
tests/unit_tests/test_mesh.py
Normal 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]
|
||||
Loading…
Add table
Add a link
Reference in a new issue