rubyx/test/mains/source/if-true_small_10.rb
Torsten Ruger 5b2c7745fe move the methods test to mains
previous commit made the mains tests more general
this joins methods tests here
so we can run them on arm too
fix #11
2018-08-18 20:06:15 +03:00

14 lines
178 B
Ruby

class Space
def if_small( n )
if( n < 10)
"small".putstring
return 10
else
return 20
end
end
def main(arg)
return if_small( 8 )
end
end