Code::Blocks  SVN r11506
debuggergdb_test_defs.cpp
Go to the documentation of this file.
2 #include "debugger_defs.h"
3 
4 SUITE(DebugDefs)
5 {
6 TEST(DetectPointerType0)
7 {
8  CHECK(IsPointerType(wxT("int *")));
9 }
10 
11 TEST(DetectPointerType1)
12 {
13  CHECK(!IsPointerType(wxT("int")));
14 }
15 
16 TEST(DetectPointerType2)
17 {
18  CHECK(IsPointerType(wxT("int * const")));
19 }
20 
21 TEST(DetectPointerType3)
22 {
23  CHECK(IsPointerType(wxT("int * volatile")));
24 }
25 
26 TEST(DetectPointerType4)
27 {
28  CHECK(!IsPointerType(wxT("char *")));
29 }
30 
31 TEST(DetectPointerType5)
32 {
33  CHECK(!IsPointerType(wxT("char const *")));
34 }
35 
36 
37 }
SUITE(DebugDefs)
#define wxT(string)
bool IsPointerType(wxString type)