Commit 3476c8de authored by LEFEBVREJP email's avatar LEFEBVREJP email
Browse files

Fixing F71Stream return and test.

parent 668363c6
Pipeline #12722 failed with stages
in 6 minutes and 26 seconds
......@@ -269,6 +269,7 @@ bool F71Stream::read_case(f71case_type& inventory)
inventory.setAlphaNSpectrum(specan);
inventory.setSpontaneousFissionSpectrum(specsp);
inventory.setNeutronEnergyBounds(eneuts);
return true;
}
} // namespace radix
......
......@@ -7,6 +7,7 @@
using namespace radix;
TEST(Radixio, F71Stream)
{
// test reading a scale 6.1 formated f71 file from DELFIC
F71Stream stream(std::string(dirname(__FILE__) + "/data/test.s61.f71"));
std::vector<F71Case> cases;
bool result = true;
......@@ -16,7 +17,7 @@ TEST(Radixio, F71Stream)
result = stream.read_case(single_case);
if (result) cases.emplace_back(single_case);
}
EXPECT_TRUE(cases.size() == 1);
ASSERT_TRUE(cases.size() == 1);
F71Case& first = cases[0];
EXPECT_EQ("fi,92235,1.0;", first.title());
EXPECT_EQ("FW: 1.21 | FracModel: Tompkins", first.basis());
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment