mercredi 27 mai 2015

XCTestCase: class member int is always 0 in test

I am testing some basic int member variable in my C++ class instance, turns out that even though the member is always 1 (initialized in constructor), what comes out at a call like object->myint in the test case always comes out as 0. Why? My tests fail.

FWIW: Using Cocos2d-x 3.5

Aucun commentaire:

Enregistrer un commentaire