9 #include <boost/test/unit_test.hpp>
21 BOOST_AUTO_TEST_SUITE(accumulated_material)
80 CHECK_CLOSE_REL(result.Z(), exp((1. / 2.) * log(4.) + (1. / 2.) * log(9.)),
99 (0.5 * 5 * 3. + 2 * 10 * 8.) / (0.5 * 5 + 2 * 10), 1
e-4);
102 exp((0.5 / (0.5 + 2.)) * log(4.) + (2. / (0.5 + 2.)) * log(9.)), 1
e-4);
103 CHECK_CLOSE_REL(result.molarDensity(), (0.5 * 5. + 2 * 10.) / (0.5 + 2),
107 BOOST_AUTO_TEST_SUITE_END()