blob: cf7482af9672a22465e2e806780987c63a1d29ce [file] [log] [blame]
#ifndef _CATCH_RIVE_TESTING_
#define _CATCH_RIVE_TESTING_
#include <catch.hpp>
#include <sstream>
#include <rive/math/mat2d.hpp>
bool aboutEqual(const rive::Mat2D& a, const rive::Mat2D& b);
namespace Catch
{
template <> struct StringMaker<rive::Mat2D>
{
static std::string convert(rive::Mat2D const& value)
{
std::ostringstream os;
os << value[0] << ", " << value[1] << ", " << value[2] << ", "
<< value[3] << ", " << value[4] << ", " << value[5];
return os.str();
}
};
} // namespace Catch
#endif