small fix

This commit is contained in:
Torsten Ruger 2015-10-07 10:22:45 +03:00
parent 513bc8d7cf
commit cd96e78e2d
2 changed files with 5 additions and 2 deletions

View File

@ -59,7 +59,7 @@ module Bosl
@method.source.add_code Virtual::MethodCall.new( method ) @method.source.add_code Virtual::MethodCall.new( method )
else else
method = @clazz.get_instance_method(name) method = @clazz.get_instance_method(name)
raise "Method not implemented Integer.#{name}" unless method raise "Method not implemented #{@clazz.name}.#{name}" unless method
@method.source.add_code Virtual::MethodCall.new( method ) @method.source.add_code Virtual::MethodCall.new( method )
end end
end end

View File

@ -176,10 +176,13 @@ HERE
def test_function_big_while def test_function_big_while
@string_input = <<HERE @string_input = <<HERE
class Object class Object
int puts(int i)
return 0
end
int fibonaccit(int n) int fibonaccit(int n)
int a = 0 int a = 0
int b = 1 int b = 1
while( n > 1 ) do while( n > 1 )
int tmp = a int tmp = a
a = b a = b
b = tmp + b b = tmp + b