array Person_nextFree196 integer Person_firstFree469 integer Person_maxIndex197 array Person_typeId154 array Person_name106 integer Person_firstFree469 = 0 integer Person_maxIndex197 = 0 function initGlobals504() { } function main169() { initGlobals504(); init_test176(); } function config935() { } function init_test176() { local integer this177 if (Person_firstFree_469 == 0) { if (Person_maxIndex_197 < 32768) { Person_maxIndex_197 = (Person_maxIndex_197 + 1); this_177 = Person_maxIndex_197; Person_typeId_154[this_177] = 1; } else { error389("Out of memory: Could not create Person."); this_177 = 0; }; } else { Person_firstFree_469 = (Person_firstFree_469 - 1); this_177 = Person_nextFree_196[Person_firstFree_469]; Person_typeId_154[this_177] = 1; }; Person_name_106[this_177] = "peq"; if (Person_typeId_154[this_177] == 0) { if (this_177 == 0) { error389("Nullpointer exception when calling Person.getName"); } else { error389("Called Person.getName on invalid object."); }; } else { }; if (Person_name_106[this_177] != "peq") { testFail139("name != peq"); } else { if (Person_typeId_154[this_177] == 0) { if (this_177 == 0) { error389("Nullpointer exception when calling Person.setName"); } else { error389("Called Person.setName on invalid object."); }; } else { }; Person_name_106[this_177] = "Frotty"; if (Person_typeId_154[this_177] == 0) { if (this_177 == 0) { error389("Nullpointer exception when calling Person.getName"); } else { error389("Called Person.getName on invalid object."); }; } else { }; if (Person_name_106[this_177] == "Frotty") { testSuccess203(); } else { testFail139("name != Frotty."); }; }; } IS_NATIVE function testFail139(string msg211) { } IS_NATIVE function testSuccess203() { } function error389(string msg796) { $debugPrint121((msg_796 + (" " + #getStackTrace()))); }