Torsten Rüger
41eccb9382
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.
25 lines
320 B
Ruby
25 lines
320 B
Ruby
class Integer < Data4
|
|
def <(right)
|
|
X.comparison(:<)
|
|
end
|
|
def +(right)
|
|
X.int_operator(:+)
|
|
end
|
|
end
|
|
class Space
|
|
def main(arg)
|
|
n = 6
|
|
a = 0
|
|
b = 1
|
|
i = 1
|
|
while( i < n )
|
|
result = a + b
|
|
a = b
|
|
b = result
|
|
i = i + 1
|
|
end
|
|
return result
|
|
end
|
|
end
|
|
#Space.new.main(1)
|