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:
23
test/mains/source/14_classname_Space_5.rb
Normal file
23
test/mains/source/14_classname_Space_5.rb
Normal file
@ -0,0 +1,23 @@
|
||||
class Word < Data8
|
||||
def putstring
|
||||
X.putstring
|
||||
end
|
||||
end
|
||||
class Class < Behaviour
|
||||
def name
|
||||
@name
|
||||
end
|
||||
end
|
||||
class Type
|
||||
def name
|
||||
@object_class.name
|
||||
end
|
||||
end
|
||||
class Space
|
||||
def type
|
||||
@type
|
||||
end
|
||||
def main(arg)
|
||||
type.name.putstring
|
||||
end
|
||||
end
|
Reference in New Issue
Block a user