Removing preloads from mains tests

Instead of loading all preload for all tests, adding just those functions that are needed for each. Should reduce test times.

Also renaming tests to give some indication of difficulty. Alas they are not run in that order.
This commit is contained in:
2019-09-24 22:05:38 +03:00
parent 1022390e0f
commit 41eccb9382
24 changed files with 153 additions and 44 deletions

View File

@ -0,0 +1,23 @@
class Integer < Data4
def <(right)
X.comparison(:<)
end
end
class Word < Data8
def putstring
X.putstring
end
end
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