1
0
mirror of https://github.com/Zygo/bees.git synced 2025-05-17 13:25:45 +02:00
bees/test/chatter.cc
2016-11-17 12:12:13 -05:00

50 lines
631 B
C++

#include "tests.h"
#include "crucible/chatter.h"
#include <ios>
#include <cassert>
#include <cstring>
#include <cstdlib>
#include <unistd.h>
using namespace crucible;
static
void
test_chatter_one()
{
cerr << endl;
CHATTER("simple chatter case");
}
static
void
test_chatter_two()
{
cerr << endl;
CHATTER("two lines\nof chatter");
}
static
void
test_chatter_three()
{
cerr << endl;
Chatter c("tct");
c << "More complicated";
c << "\ncase with\n";
c << "some \\ns";
}
int
main(int, char**)
{
RUN_A_TEST(test_chatter_one());
RUN_A_TEST(test_chatter_two());
RUN_A_TEST(test_chatter_three());
exit(EXIT_SUCCESS);
}