// this script was compiled with wurst 1.8.1.0-jenkins-Wurst-1365 globals integer test_putCount=0 integer child_put_return_a=0 integer child_put_return_b=0 integer child_put_return_c=0 integer child_put_return_d=0 endglobals native println takes string s returns nothing native testSuccess takes nothing returns nothing function initGlobals takes nothing returns nothing endfunction function child_put takes integer this_a, integer this_b, integer this_c, integer this_d, integer i, integer num returns integer set test_putCount = test_putCount + 1 if i == 0 then set child_put_return_a = num set child_put_return_b = this_b set child_put_return_c = this_c set child_put_return_d = this_d return child_put_return_a else set child_put_return_a = this_a if i == 1 then set child_put_return_b = num set child_put_return_c = this_b set child_put_return_d = this_d return child_put_return_a else set child_put_return_b = this_b if i == 2 then set child_put_return_c = num set child_put_return_d = this_d return child_put_return_a else set child_put_return_c = this_b set child_put_return_d = num return child_put_return_a endif endif endif endfunction function init_test takes nothing returns nothing local integer tuple_temp = child_put(0, 0, 0, 0, GetRandomInt(0, 3), 100) local integer tuple_temp_1 = child_put_return_b local integer tuple_temp_2 = child_put_return_c local integer tuple_temp_3 = child_put_return_d call println(I2S(tuple_temp)) call println(I2S(tuple_temp_1)) call println(I2S(tuple_temp_2)) call println(I2S(tuple_temp_3)) call println(I2S(test_putCount)) if test_putCount == 1 then call testSuccess() endif endfunction function main takes nothing returns nothing call initGlobals() call init_test() endfunction function config takes nothing returns nothing endfunction