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
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;