Revision c8a94924e1587005284bada9a0eac0af0d37746e authored by Dmitry Yu. Naumov on 13 July 2021, 14:14:43 UTC, committed by Dmitry Yu. Naumov on 13 July 2021, 14:14:43 UTC
Enabled using MFront in HydroMechanics Closes #3162 See merge request ogs/ogs!3704
TestTools.h
/**
* \file
* \author Norihiro Watanabe
* \date 2013-04-16
* \brief
*
* \copyright
* Copyright (c) 2012-2021, OpenGeoSys Community (http://www.opengeosys.org)
* Distributed under a Modified BSD License.
* See accompanying file LICENSE.txt or
* http://www.opengeosys.org/project/license
*
*/
#include <gtest/gtest.h>
#include <boost/property_tree/ptree_fwd.hpp>
#pragma once
#define ASSERT_ARRAY_NEAR(E,A,N,eps)\
for (std::size_t i=0; i<(unsigned)(N); i++) \
ASSERT_NEAR((E)[i], (A)[i], (eps));
#define ASSERT_ARRAY_EQ(E,A,N)\
for (std::size_t i=0; i<(unsigned)(N); i++) \
ASSERT_EQ((E)[i], (A)[i]);
namespace Tests
{
boost::property_tree::ptree readXml(const char xml[]);
} // namespace Tests
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...