rubyx/test/mains/source/if-false_large_20.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
179 B
Ruby

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