array Person_nextFree185 integer Person_firstFree890 integer Person_maxIndex717 array Person_typeId282 array Person_name100 integer Person_firstFree890 = 0 integer Person_maxIndex717 = 0 function initGlobals725() { } function main203() { initGlobals725(); init_test141(); } function config510() { } function init_test141() { local integer this146 if (Person_firstFree_890 == 0) { if (Person_maxIndex_717 < 32768) { Person_maxIndex_717 = (Person_maxIndex_717 + 1); this_146 = Person_maxIndex_717; Person_typeId_282[this_146] = 1; } else { error343("Out of memory: Could not create Person."); this_146 = 0; }; } else { Person_firstFree_890 = (Person_firstFree_890 - 1); this_146 = Person_nextFree_185[Person_firstFree_890]; Person_typeId_282[this_146] = 1; }; Person_name_100[this_146] = "peq"; if (Person_typeId_282[this_146] == 0) { if (this_146 == 0) { error343("Nullpointer exception when calling Person.getName"); } else { error343("Called Person.getName on invalid object."); }; } else { }; if (Person_name_100[this_146] != "peq") { testFail876("name != peq"); } else { if (Person_typeId_282[this_146] == 0) { if (this_146 == 0) { error343("Nullpointer exception when calling Person.setName"); } else { error343("Called Person.setName on invalid object."); }; } else { }; Person_name_100[this_146] = "Frotty"; if (Person_typeId_282[this_146] == 0) { if (this_146 == 0) { error343("Nullpointer exception when calling Person.getName"); } else { error343("Called Person.getName on invalid object."); }; } else { }; if (Person_name_100[this_146] == "Frotty") { testSuccess655(); } else { testFail876("name != Frotty."); }; }; } IS_NATIVE function testFail876(string msg209) { } IS_NATIVE function testSuccess655() { } function error343(string msg467) { $debugPrint573((msg_467 + (" " + #getStackTrace()))); }