#include "constrtestdata.h"
#include "constrtestrunners.h"
+//! Helper function to convert t_pbc into string and make test failure messages readable
+static void PrintTo(const t_pbc& pbc, std::ostream* os)
+{
+ *os << "PBC: " << c_pbcTypeNames[pbc.pbcType];
+}
+
+
namespace gmx
{
+
namespace test
{
namespace
return pbcs;
}();
-
struct ConstraintsTestSystem
{
//! Human-friendly name of the system.
FloatingPointTolerance virialTolerance = absoluteTolerance(0.0001);
};
+//! Helper function to convert ConstraintsTestSystem into string and make test failure messages readable
+void PrintTo(const ConstraintsTestSystem& constraintsTestSystem, std::ostream* os)
+{
+ *os << constraintsTestSystem.title << " - " << constraintsTestSystem.numAtoms << " atoms";
+}
+
const std::vector<ConstraintsTestSystem> c_constraintsTestSystemList = [] {
std::vector<ConstraintsTestSystem> constraintsTestSystemList;
{