TestCAPI.hpp
1.31 KB
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
44
45
46
47
48
49
50
51
52
53
/*
* File: TestCAPI.hpp
* Author: lennyn
*
* Created on Jun 27, 2014, 12:49:12 PM
*/
#ifndef TESTCAPI_HPP
#define TESTCAPI_HPP
#include <cppunit/extensions/HelperMacros.h>
class TestCAPI : public CPPUNIT_NS::TestFixture {
CPPUNIT_TEST_SUITE(TestCAPI);
CPPUNIT_TEST(testTwoSimpleInvocations);
CPPUNIT_TEST(testWhitespaceKEEP);
CPPUNIT_TEST(testWhitespaceAPPEND);
CPPUNIT_TEST(testEncodingUTF8);
CPPUNIT_TEST(testEncodingISO8859_2);
CPPUNIT_TEST(testEncodingCP1250);
CPPUNIT_TEST(testEncodingCP852);
CPPUNIT_TEST(testWrongWhitespaceOption);
CPPUNIT_TEST(testWrongEncodingOption);
CPPUNIT_TEST(testWrongCaseOption);
CPPUNIT_TEST(testWrongTokenNumberingOption);
CPPUNIT_TEST(testTokenNumberingCONTINUOUS);
CPPUNIT_TEST_SUITE_END();
public:
TestCAPI();
virtual ~TestCAPI();
void setUp();
void tearDown();
private:
void testTwoSimpleInvocations();
void testWhitespaceKEEP();
void testWhitespaceAPPEND();
void testEncodingUTF8();
void testEncodingISO8859_2();
void testEncodingCP1250();
void testEncodingCP852();
void testWrongWhitespaceOption();
void testWrongEncodingOption();
void testWrongCaseOption();
void testWrongTokenNumberingOption();
void testTokenNumberingCONTINUOUS();
};
#endif /* TESTCAPI_HPP */