require_relative "compiler_helper" require_relative "code_checker" module Virtual class TestMethods < MiniTest::Test include CodeChecker def test_module @string_input = < 5) return 10 else return 20 end end end HERE @output = [[Virtual::MethodEnter],[Virtual::MethodReturn]] check end def test_function_return_while @string_input = < 5) do n = n + 1 return n end end end HERE @output = [[Virtual::MethodEnter],[Virtual::MethodReturn]] check end def test_function_big_while @string_input = < 1 ) do int tmp = a a = b b = tmp + b puts(b) n = n - 1 end end end HERE @output = [[Virtual::MethodEnter],[Virtual::MethodReturn]] check end end end