Files

32 lines
425 B
C++
Raw Permalink Normal View History

2018-05-27 15:00:16 -07:00
#pragma once
#include <QtCore/QPoint>
#include <QtCore/QPointF>
2018-10-10 07:40:20 -07:00
#include <catch2/catch.hpp>
2018-05-27 15:00:16 -07:00
#include <QtTest>
namespace Catch
{
template <>
struct StringMaker<QPointF>
{
static std::string
convert(QPointF const& p)
{
return std::string(QTest::toString(p));
}
};
template <>
struct StringMaker<QPoint>
{
static std::string
convert(QPoint const& p)
{
return std::string(QTest::toString(p));
}
};
}