star-hitran

Load line-by-line data from the HITRAN database
git clone git://git.meso-star.fr/star-hitran.git
Log | Files | Refs | README | LICENSE

commit 78e0f0206819e2d6726132446f4dedbcf5c0aac8
parent 96fb7eb12a74281edbaec2aa2e0fad1d157d7e68
Author: Vincent Forest <vincent.forest@meso-star.com>
Date:   Tue, 10 Mar 2026 10:23:54 +0100

Test metadata hashing when testing metadata equality

Diffstat:
Msrc/test_shtr_isotope_metadata.c | 6++++++
1 file changed, 6 insertions(+), 0 deletions(-)

diff --git a/src/test_shtr_isotope_metadata.c b/src/test_shtr_isotope_metadata.c @@ -273,6 +273,8 @@ check_equality (const struct shtr_isotope_metadata* mdata1, const struct shtr_isotope_metadata* mdata2) { + hash256_T hash1; + hash256_T hash2; size_t n1, n2; size_t imol, nmol; CHK(mdata1 && mdata2); @@ -307,6 +309,10 @@ check_equality CHK(mol1.isotopes[iiso].id == mol2.isotopes[iiso].id); } } + + CHK(shtr_isotope_metadata_hash(mdata1, hash1) == RES_OK); + CHK(shtr_isotope_metadata_hash(mdata2, hash2) == RES_OK); + CHK(hash256_eq(hash1, hash2) != 0); } static void