array Person_nextFree167 integer Person_firstFree181 integer Person_maxIndex124 array Person_typeId136 array Person_name343 integer Person_firstFree181 = 0 integer Person_maxIndex124 = 0 function initGlobals123() { } function main711() { initGlobals123(); init_test996(); } function config169() { } function init_test996() { local integer this172 if (Person_firstFree_181 == 0) { if (Person_maxIndex_124 < 32768) { Person_maxIndex_124 = (Person_maxIndex_124 + 1); this_172 = Person_maxIndex_124; Person_typeId_136[this_172] = 1; } else { error737("Out of memory: Could not create Person."); this_172 = 0; }; } else { Person_firstFree_181 = (Person_firstFree_181 - 1); this_172 = Person_nextFree_167[Person_firstFree_181]; Person_typeId_136[this_172] = 1; }; Person_name_343[this_172] = "peq"; if (Person_typeId_136[this_172] == 0) { if (this_172 == 0) { error737("Nullpointer exception when calling Person.getName"); } else { error737("Called Person.getName on invalid object."); }; } else { }; if (Person_name_343[this_172] != "peq") { testFail991("name != peq"); } else { if (Person_typeId_136[this_172] == 0) { if (this_172 == 0) { error737("Nullpointer exception when calling Person.setName"); } else { error737("Called Person.setName on invalid object."); }; } else { }; Person_name_343[this_172] = "Frotty"; if (Person_typeId_136[this_172] == 0) { if (this_172 == 0) { error737("Nullpointer exception when calling Person.getName"); } else { error737("Called Person.getName on invalid object."); }; } else { }; if (Person_name_343[this_172] == "Frotty") { testSuccess536(); } else { testFail991("name != Frotty."); }; }; } IS_NATIVE function testFail991(string msg155) { } IS_NATIVE function testSuccess536() { } function error737(string msg721) { $debugPrint922((msg_721 + (" " + #getStackTrace()))); }