Skip to content

Commit

Permalink
tests/test_input: restored formatting test
Browse files Browse the repository at this point in the history
  • Loading branch information
BitterB0NG0 committed Nov 2, 2024
1 parent 9a01e32 commit 7196cab
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions tests/test_input.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,14 @@ def test_comments():
# test for line that includes multiple $ signs


# def test_formatting():
# """Manually format a file and make sure that the output is not changing."""
#
# input_file = Path(__file__).parent / 'data' / 'test-input-detector.i'
# output_file = Path(__file__).parent / 'data' / 'test-input-detector-formatted.i'
#
# result = output_file.read_text()
#
# out = pymcnp.read_input(input_file).to_mcnp()
#
# assert out == result
def test_formatting():
"""Manually format a file and make sure that the output is not changing."""

input_file = Path(__file__).parent / 'data' / 'test-input-detector.i'
output_file = Path(__file__).parent / 'data' / 'test-input-detector-formatted.i'

result = output_file.read_text()

out = pymcnp.read_input(input_file).to_mcnp()

assert out == result

0 comments on commit 7196cab

Please sign in to comment.