blob: 616b97ff044653328762e331702442b7a90db5de (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
#include <snowhouse/snowhouse.h>
using namespace snowhouse;
#include "tests.h"
void BooleanOperators();
void BasicAssertions();
void ContainerConstraints();
void CustomMatchers();
void ExceptionTests();
void ExpressionErrorHandling();
void MapTests();
void OperatorTests();
void SequenceContainerTests();
void StringLineTests();
void StringTests();
void StringizeTests();
int main()
{
try
{
BasicAssertions();
BooleanOperators();
ContainerConstraints();
CustomMatchers();
ExceptionTests();
ExpressionErrorHandling();
MapTests();
OperatorTests();
SequenceContainerTests();
StringLineTests();
StringTests();
StringizeTests();
}
catch(const AssertionException& e)
{
std::cout << "Tests failed!" << std::endl;
std::cout << e.GetMessage() << std::endl;
return 1;
}
return 0;
}
|