Skip to content

Commit

Permalink
expected importance values changed to doubles
Browse files Browse the repository at this point in the history
  • Loading branch information
kkiesling committed Mar 28, 2020
1 parent c28645b commit 0e18982
Showing 1 changed file with 23 additions and 23 deletions.
46 changes: 23 additions & 23 deletions src/mcnp/tests/dagmcnp_unit_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,17 +76,17 @@ TEST_F(DAGMCNP5Test, dagmclcad_test) {
// Test setup outcomes
TEST_F(DAGMCNP5Test, dagmcinit_test) {
// expected values from the lcad file // only the cells
const char* expected[] = {"1 9 -12.0 imp:n=1 imp:p=1 ",
"2 9 -12.0 imp:n=1 imp:p=1 ",
"3 9 -12.0 imp:n=1 imp:p=1 ",
"4 9 -12.0 imp:n=1 imp:p=1 ",
"5 3 -2.0 imp:n=1 imp:p=1 ",
"6 3 -2.0 imp:n=1 imp:p=1 ",
"7 3 -2.0 imp:n=1 imp:p=1 ",
"8 3 -2.0 imp:n=1 imp:p=1 ",
"9 1 0.022 imp:n=1 imp:p=1 ",
"12 0 imp:n=0 imp:p=0 $ graveyard",
"13 0 imp:n=1 imp:p=1 $ implicit complement"
const char* expected[] = {"1 9 -12.0 imp:n=1.000000 imp:p=1.000000 ",
"2 9 -12.0 imp:n=1.000000 imp:p=1.000000 ",
"3 9 -12.0 imp:n=1.000000 imp:p=1.000000 ",
"4 9 -12.0 imp:n=1.000000 imp:p=1.000000 ",
"5 3 -2.0 imp:n=1.000000 imp:p=1.000000 ",
"6 3 -2.0 imp:n=1.000000 imp:p=1.000000 ",
"7 3 -2.0 imp:n=1.000000 imp:p=1.000000 ",
"8 3 -2.0 imp:n=1.000000 imp:p=1.000000 ",
"9 1 0.022 imp:n=1.000000 imp:p=1.000000 ",
"12 0 imp:n=0.000000 imp:p=0.000000 $ graveyard",
"13 0 imp:n=1.000000 imp:p=1.000000 $ implicit complement"
};
std::vector<std::string> expected_lcad(expected, expected + 11);

Expand All @@ -113,7 +113,7 @@ TEST_F(DAGMCNP5Test, dagmcinit_test) {
EXPECT_EQ(expected_lcad[i], input_deck[i]);
}
// delete the lcad file
std::remove("lcad");
//std::remove("lcad");

// clearout the dagmc instance
dagmc_teardown_();
Expand All @@ -127,17 +127,17 @@ TEST_F(DAGMCNP5Test, dagmclcad_comp_test) {
// Test setup outcomes
TEST_F(DAGMCNP5Test, dagmcinit_comp_test) {
// expected values from the lcad file // only the cells
const char* expected[] = {"1 9 -12.0 imp:n=1 imp:p=1 ",
"2 9 -12.0 imp:n=1 imp:p=1 ",
"3 9 -12.0 imp:n=1 imp:p=1 ",
"4 9 -12.0 imp:n=1 imp:p=1 ",
"5 3 -2.0 imp:n=1 imp:p=1 ",
"6 3 -2.0 imp:n=1 imp:p=1 ",
"7 3 -2.0 imp:n=1 imp:p=1 ",
"8 3 -2.0 imp:n=1 imp:p=1 ",
"9 1 0.022 imp:n=1 imp:p=1 ",
"12 0 imp:n=0 imp:p=0 $ graveyard",
"13 2 -3.1 imp:n=1 imp:p=1 $ implicit complement"
const char* expected[] = {"1 9 -12.0 imp:n=1.000000 imp:p=1.000000 ",
"2 9 -12.0 imp:n=1.000000 imp:p=1.000000 ",
"3 9 -12.0 imp:n=1.000000 imp:p=1.000000 ",
"4 9 -12.0 imp:n=1.000000 imp:p=1.000000 ",
"5 3 -2.0 imp:n=1.000000 imp:p=1.000000 ",
"6 3 -2.0 imp:n=1.000000 imp:p=1.000000 ",
"7 3 -2.0 imp:n=1.000000 imp:p=1.000000 ",
"8 3 -2.0 imp:n=1.000000 imp:p=1.000000 ",
"9 1 0.022 imp:n=1.000000 imp:p=1.000000 ",
"12 0 imp:n=0.000000 imp:p=0.000000 $ graveyard",
"13 2 -3.1 imp:n=1.000000 imp:p=1.000000 $ implicit complement"
};
std::vector<std::string> expected_lcad(expected, expected + 11);

Expand Down

0 comments on commit 0e18982

Please sign in to comment.