// this script was compiled with wurst 1.8.1.0-jenkins-Wurst-1365 globals endglobals native testSuccess takes nothing returns nothing function initGlobals takes nothing returns nothing endfunction function T_foo takes integer this returns integer return this endfunction function stringFromIndex takes integer i returns string return "" endfunction function stringToIndex takes string b returns integer return 0 endfunction function init_test takes nothing returns nothing local string x = stringFromIndex(T_foo(stringToIndex("hello"))) if x == "hello" then call testSuccess() endif endfunction function main takes nothing returns nothing call initGlobals() call init_test() endfunction function config takes nothing returns nothing endfunction