mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 13:45:36 -04:00
Test line-by-line assert_array_equal
This commit is contained in:
parent
ba644ca335
commit
7ee3e12771
1 changed files with 2 additions and 1 deletions
|
|
@ -77,7 +77,8 @@ class SurfaceSourceTestHarness(PyAPITestHarness):
|
|||
src_true = f['source_bank'][()]
|
||||
with h5py.File("surface_source.h5", 'r') as f:
|
||||
src_test = f['source_bank'][()]
|
||||
np.testing.assert_array_equal(np.sort(src_true), np.sort(src_test))
|
||||
for (true_p, test_p) in zip(np.sort(src_true), np.sort(src_test)):
|
||||
np.testing.assert_array_equal(true_p, test_p)
|
||||
|
||||
def execute_test(self):
|
||||
"""Build input XMLs, run OpenMC, check output and results."""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue