fix crash in UnitTest.cpp on vs.

This commit is contained in:
Dhilan007 2014-01-06 15:19:47 +08:00
parent 0f374ce838
commit 4261a441de
1 changed files with 2 additions and 0 deletions

View File

@ -343,7 +343,9 @@ void TemplateMapTest::onEnter()
Map<std::string, Node*> map1;
CCASSERT(map1.empty(), "");
CCASSERT(map1.size() == 0, "");
#if (CC_TARGET_PLATFORM != CC_PLATFORM_WIN32)
CCASSERT(map1.bucketCount() == 0, "");
#endif
CCASSERT(map1.keys().empty(), "");
CCASSERT(map1.keys(Node::create()).empty(), "");