testdmpvectorlayer.cpp
1.3 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
/**************************************************************************
* file: testdmpvectorlayer.cpp
* Author: wanzhongping
* Date: 2021-08-09 16:45:06
* Email: zhongpingw@chinadci.com
* copyright: 广州城市信息研究所有限公司
***************************************************************************/
#define BOOST_TEST_MODULE Unit test DmpVectorLayer
#include <boost/test/unit_test.hpp>
//____________________________________________________________________________//
struct TestQgsVectorLayer
{
TestQgsVectorLayer() : i( 0 )
{
BOOST_TEST_MESSAGE( "setup fixture" );
}
~TestQgsVectorLayer()
{
BOOST_TEST_MESSAGE( "teardown fixture" );
}
int i;
};
//____________________________________________________________________________//
// struct F is going to be used as a fixture for all test cases in this test suite
BOOST_FIXTURE_TEST_SUITE(s, TestQgsVectorLayer)
BOOST_AUTO_TEST_CASE(my_test1)
{
BOOST_CHECK( i == 0 );
}
//____________________________________________________________________________//
BOOST_AUTO_TEST_CASE(my_test2)
{
BOOST_CHECK_EQUAL(i, 1);
}
//____________________________________________________________________________//
BOOST_AUTO_TEST_SUITE_END()