15{
16 DenseMatrix<Real> stoi(1, 3);
17
18 try
19 {
21 FAIL() << "Missing expected exception.";
22 }
23 catch (const std::exception & e)
24 {
25 std::string msg(e.what());
26 ASSERT_TRUE(msg.find("GeochemistryFormattedOutput::reaction called with stoichiometric matrix "
27 "having 1 rows, but row = 1") != std::string::npos)
28 << "Failed with unexpected error message: " << msg;
29 }
30
31 try
32 {
34 FAIL() << "Missing expected exception.";
35 }
36 catch (const std::exception & e)
37 {
38 std::string msg(e.what());
39 ASSERT_TRUE(msg.find("GeochemistryFormattedOutput::reaction called with stoichiometric matrix "
40 "having 3 columns, but names has size 2") != std::string::npos)
41 << "Failed with unexpected error message: " << msg;
42 }
43}