10#include "gtest/gtest.h"
16 DenseMatrix<Real> stoi(1, 3);
21 FAIL() <<
"Missing expected exception.";
23 catch (
const std::exception & e)
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;
34 FAIL() <<
"Missing expected exception.";
36 catch (
const std::exception & e)
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;
47 DenseMatrix<Real> stoi(2, 3);
50 stoi(0, 2) = -1.0 / 3.0;
53 stoi(1, 2) = 456789.0;
57 "2*n1 + 4.57e+05*n2");