Skip to content

Commit

Permalink
add test for energy adjustment comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
mattmcdermott committed Feb 25, 2024
1 parent 96c9380 commit 2909580
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/entries/test_nist.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,13 @@ def test_equals(entries):

assert entry1 != entry2

entry2_copy = NISTReferenceEntry(
composition=comp,
temperature=300,
energy_adjustments=[ManualEnergyAdjustment(0.1)],
)
assert entry2 == entry2_copy # ensure identical energy_adjustments are compared correctly


def test_unique_id(entries):
entry = entries[300]
Expand Down

0 comments on commit 2909580

Please sign in to comment.