Skip to content

Commit

Permalink
syntax and comment
Browse files Browse the repository at this point in the history
  • Loading branch information
bam241 committed Dec 16, 2024
1 parent 2576dfc commit a4c164c
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions src/dagmc/tests/dagmc_unit_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ TEST_F(DagmcMetadataTest, TestMatAssigns) {
}
}
//---------------------------------------------------------------------------//
// FIXTURE-BASED TESTS: Tests to make sure that all volumes have successfully
// been assigned and successfully retreved from the metadata class
// FIXTURE-BASED TESTS: Tests to make sure that vacuum detection is done
// properly
//---------------------------------------------------------------------------//
TEST_F(DagmcMetadataTest, TestVacuumName) {
// Test default behavior for vacuum name
Expand All @@ -92,14 +92,11 @@ TEST_F(DagmcMetadataTest, TestVacuumName) {
// process
dgm->load_property_data();


std::string base_property = "mat:Hydrogen";
std::string impl_comp_prop = "mat:Vacuum";

int num_vol = DAG->num_entities(3);
std::vector<int> vol_ids = {1, 2, 3, 4};

std::vector<std::string> vacuum_names = {"Hydrogen", "Hydrogen", "Hydrogen", "Vacuum"};
std::vector<std::string> vacuum_names = {"Hydrogen", "Hydrogen", "Hydrogen",
"Vacuum"};
for (int id : vol_ids){
std::string mat_prop = dgm->get_volume_property("material", id, false);
EXPECT_EQ(mat_prop, vacuum_names[id-1]);
Expand All @@ -115,7 +112,8 @@ TEST_F(DagmcMetadataTest, TestVacuumName) {
int num_vol = DAG->num_entities(3);
std::vector<int> vol_ids = {1, 2, 3, 4};

std::vector<std::string> vacuum_names = {"Vacuum", "Vacuum", "Vacuum", "Vacuum"};
std::vector<std::string> vacuum_names = {"Vacuum", "Vacuum", "Vacuum",
"Vacuum"};
for (int id : vol_ids){
std::string mat_prop = dgm->get_volume_property("material", id, false);
EXPECT_EQ(mat_prop, vacuum_names[id-1]);
Expand All @@ -131,7 +129,8 @@ TEST_F(DagmcMetadataTest, TestVacuumName) {
int num_vol = DAG->num_entities(3);
std::vector<int> vol_ids = {1, 2, 3, 4};

std::vector<std::string> vacuum_names = {"Hydrogen", "Hydrogen", "Hydrogen", "Vacuum"};
std::vector<std::string> vacuum_names = {"Hydrogen", "Hydrogen", "Hydrogen",
"Vacuum"};
for (int id : vol_ids){
std::string mat_prop = dgm->get_volume_property("material", id, false);
EXPECT_EQ(mat_prop, vacuum_names[id-1]);
Expand Down

0 comments on commit a4c164c

Please sign in to comment.