Skip to content

Commit

Permalink
Fix (xs) units for chlep ctest
Browse files Browse the repository at this point in the history
  • Loading branch information
whokion committed Mar 6, 2024
1 parent 77684be commit 4f49688
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/celeritas/neutron/NeutronElastic.test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,9 @@ TEST_F(NeutronElasticTest, macro_xs)
real_type const factor = 1e+1;
for (auto i : range(expected_macro_xs.size()))
{
EXPECT_SOFT_EQ(calc_xs(MevEnergy{energy}), expected_macro_xs[i]);
EXPECT_SOFT_EQ(
native_value_to<units::InvCmXs>(calc_xs(MevEnergy{energy})).value(),
expected_macro_xs[i]);
energy *= factor;
}

Expand Down

0 comments on commit 4f49688

Please sign in to comment.