Port the last example

This commit is contained in:
Martin Hořeňovský 2019-12-08 20:57:55 +01:00
parent 70ef2f7f12
commit 29b441949c
No known key found for this signature in database
GPG key ID: DE48307B8B0D381A
4 changed files with 28 additions and 5 deletions

View file

@ -6,10 +6,12 @@
// there is no important difference between having `std::cerr` buffered
// or unbuffered.
#define CATCH_CONFIG_NOSTDOUT
#define CATCH_CONFIG_MAIN
#include <catch2/catch_default_main.hpp>
#include <catch2/catch.hpp>
#include <sstream>
#include <cstdio>
class out_buff : public std::stringbuf {
std::FILE* m_stream;