Test-Catch
view release on metacpan or search on metacpan
#include <math.h> // this fixes win32 because <cmath> that is included by <catch.hpp> breaks <perl.h> unless previously included <math.h>
#include <vector>
#include <iostream>
#include <catch2/catch_session.hpp>
#include <catch2/internal/catch_string_manip.hpp>
#include <catch2/internal/catch_console_colour.hpp>
#include <catch2/reporters/catch_reporter_registrars.hpp>
#include <catch2/reporters/catch_reporter_streaming_base.hpp>
#include <xsheader.h>
using namespace Catch;
using namespace std;
static Catch::Session session;
struct Printer {
Printer (ostream& _stream, const AssertionStats& _stats)
: stream(_stream), result(_stats.assertionResult), messages(_stats.infoMessages), itMessage(_stats.infoMessages.begin()) {}
( run in 0.235 second using v1.01-cache-2.11-cpan-4d50c553e7e )