~efargaspro/+junk/codeblocks-16.01-release

« back to all changes in this revision

Viewing changes to src/plugins/debuggergdb/debuggergdb_test_parser_cdb.cpp

  • Committer: damienlmoore at gmail
  • Date: 2016-02-02 02:43:22 UTC
  • Revision ID: damienlmoore@gmail.com-20160202024322-yql5qmtbwdyamdwd
Code::BlocksĀ 16.01

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#include "debuggergdb_test_common.h"
 
2
 
 
3
#include "parsewatchvalue.h"
 
4
 
 
5
SUITE(CDBWatchParser)
 
6
{
 
7
 
 
8
TEST(CDBSingleLineStructPointer)
 
9
{
 
10
    cb::shared_ptr<GDBWatch> w(new GDBWatch(wxT("t")));
 
11
    CHECK(ParseCDBWatchValue(w, wxT("struct t * 0x123456")));
 
12
    CHECK_EQUAL(wxT("t=0x123456"), *w);
 
13
}
 
14
 
 
15
TEST(CDBSingleLineClassPointer)
 
16
{
 
17
    cb::shared_ptr<GDBWatch> w(new GDBWatch(wxT("t")));
 
18
    CHECK(ParseCDBWatchValue(w, wxT("class t * 0x123456")));
 
19
    CHECK_EQUAL(wxT("t=0x123456"), *w);
 
20
}
 
21
 
 
22
} // SUITE(CDBWatchParser)
 
23