// this script was compiled with wurst 1.8.1.0-jenkins-Wurst-1365 globals integer Test_i=0 endglobals native testSuccess takes nothing returns nothing function initGlobals takes nothing returns nothing endfunction function int_close takes integer this returns nothing call testSuccess() endfunction function int_hasNext takes integer this returns boolean return Test_i < 3 endfunction function int_iterator takes integer this returns integer return Test_i endfunction function int_next takes integer this returns integer set Test_i = Test_i + 1 return Test_i endfunction function init_Test takes nothing returns nothing local integer iterator set Test_i = 0 set iterator = int_iterator(Test_i) loop exitwhen not int_hasNext(iterator) call int_next(iterator) endloop call int_close(iterator) endfunction function main takes nothing returns nothing call initGlobals() call init_Test() endfunction function config takes nothing returns nothing endfunction