array Person_nextFree196 integer Person_firstFree474 integer Person_maxIndex296 array Person_typeId962 array Person_name488 integer Person_firstFree474 = 0 integer Person_maxIndex296 = 0 function initGlobals258() { } function main162() { initGlobals258(); init_test402(); } function config185() { } function init_test402() { local integer this544 if (Person_firstFree_474 == 0) { if (Person_maxIndex_296 < 32768) { Person_maxIndex_296 = (Person_maxIndex_296 + 1); this_544 = Person_maxIndex_296; Person_typeId_962[this_544] = 1; } else { error206("Out of memory: Could not create Person."); this_544 = 0; }; } else { Person_firstFree_474 = (Person_firstFree_474 - 1); this_544 = Person_nextFree_196[Person_firstFree_474]; Person_typeId_962[this_544] = 1; }; Person_name_488[this_544] = "peq"; if (Person_typeId_962[this_544] == 0) { if (this_544 == 0) { error206("Nullpointer exception when calling Person.getName"); } else { error206("Called Person.getName on invalid object."); }; } else { }; if (Person_name_488[this_544] != "peq") { testFail552("name != peq"); } else { if (Person_typeId_962[this_544] == 0) { if (this_544 == 0) { error206("Nullpointer exception when calling Person.setName"); } else { error206("Called Person.setName on invalid object."); }; } else { }; Person_name_488[this_544] = "Frotty"; if (Person_typeId_962[this_544] == 0) { if (this_544 == 0) { error206("Nullpointer exception when calling Person.getName"); } else { error206("Called Person.getName on invalid object."); }; } else { }; if (Person_name_488[this_544] == "Frotty") { testSuccess941(); } else { testFail552("name != Frotty."); }; }; } IS_NATIVE function testFail552(string msg422) { } IS_NATIVE function testSuccess941() { } function error206(string msg139) { $debugPrint120((msg_139 + (" " + #getStackTrace()))); }