mirror of
https://github.com/Zygo/bees.git
synced 2025-06-16 17:46:16 +02:00
bees: remove local cruft, throw at github
This commit is contained in:
49
test/chatter.cc
Normal file
49
test/chatter.cc
Normal file
@ -0,0 +1,49 @@
|
||||
#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);
|
||||
}
|
Reference in New Issue
Block a user