feat(az_to_species): az_to_species now returns an expected and error type

this will allow for much easier checking if a particular a,z pair actually exists
This commit is contained in:
2025-10-08 15:17:33 -04:00
parent 64b88e18cc
commit f539e498b8
4 changed files with 43 additions and 10692 deletions

View File

@@ -89,7 +89,7 @@ TEST_F(compositionTest, isotopeSpin) {
* @par What this test proves:
* - The default constructor is accessible and does not fail on basic initialization.
* @par What this test does not prove:
* - The state of the constructed object or the correctness of any of its methods.
* - The state of the constructed object or the correctness of its methods.
*/
TEST_F(compositionTest, constructor) {
fourdst::config::Config::getInstance().loadConfig(EXAMPLE_FILENAME);
@@ -431,6 +431,8 @@ TEST_F(compositionTest, getRegisteredSpecies) {
TEST_F(compositionTest, getSpeciesFromAZ) {
EXPECT_EQ(fourdst::atomic::O_12, fourdst::atomic::az_to_species(12, 8));
EXPECT_EQ(fourdst::atomic::SpeciesErrorType::SPECIES_SYMBOL_NOT_FOUND, fourdst::atomic::az_to_species(120, 38).error());
EXPECT_EQ(fourdst::atomic::SpeciesErrorType::ELEMENT_SYMBOL_NOT_FOUND, fourdst::atomic::az_to_species(120, 500).error());
}
TEST_F(compositionTest, constructorWithSymbolsVectorAndSet) {