// this script was compiled with wurst 1.8.1.0-jenkins-Wurst-1367
globals
endglobals
native testFail takes string msg returns nothing
native testSuccess takes nothing returns nothing
function initGlobals takes nothing returns nothing
endfunction

function init_Test takes nothing returns nothing
	local integer this_val = 5
	local integer this = 2
	local integer result = 1
	local integer i = 1
	local integer temp = 1
	loop
		exitwhen i > temp
		set result = result * this
		set i = i + 1
	endloop
	if ModuloInteger(this_val, result * 2) < result then
		set this_val = this_val + result
	endif
	if this_val == 7 then
		call testSuccess()
	else
		call testFail(I2S(this_val))
	endif
endfunction

function main takes nothing returns nothing
	call initGlobals()
	call init_Test()
endfunction

function config takes nothing returns nothing
endfunction