Merge pull request #4915 from Dhilan007/develop_crash

fix crash in UnitTest.cpp on vs.
This commit is contained in:
James Chen 2014-01-05 23:27:08 -08:00
commit d9e79b4ec5
1 changed files with 2 additions and 0 deletions

View File

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