source: dev/trunk/ab5.0/abdev/ab-test/Type.cpp@ 828

Last change on this file since 828 was 821, checked in by イグトランス (egtra), 13 years ago

単体テスト周りの修正

File size: 658 bytes
Line 
1#include "stdafx.h"
2
3#include <commctrl.h>
4#include <boost/serialization/access.hpp>
5#include <boost/serialization/split_member.hpp>
6#include <boost/serialization/export.hpp>
7#include <boost/range.hpp>
8
9#include <jenga/include/jenga.h>
10#include <abdev/ab_common/include/ab_common.h>
11
12// 暫定
13int bDebugSupportProc;
14
15BOOST_AUTO_TEST_CASE(TypeTest)
16{
17 Type t;
18 BOOST_CHECK_EQUAL(t.GetBasicType(), DEF_NON);
19 BOOST_CHECK_EQUAL(t.GetIndex(), -1);
20
21 int basicType = DEF_NON;
22 Type::StringToBasicType("Long", basicType);
23 BOOST_CHECK_EQUAL(basicType, DEF_LONG);
24
25 BOOST_CHECK_EQUAL(Type::GetBasicTypeFromSimpleName("a%"), DEF_INTEGER);
26}
Note: See TracBrowser for help on using the repository browser.