Class: Mumukit::Metatest::Framework
- Inherits:
-
Object
- Object
- Mumukit::Metatest::Framework
- Defined in:
- lib/mumukit/metatest/framework.rb
Instance Method Summary collapse
- #example(compilation, example) ⇒ Object
-
#initialize(options = {}) ⇒ Framework
constructor
A new instance of Framework.
- #test(compilation, examples) ⇒ Object
Constructor Details
#initialize(options = {}) ⇒ Framework
Returns a new instance of Framework.
3 4 5 6 |
# File 'lib/mumukit/metatest/framework.rb', line 3 def initialize(={}) @runner = [:runner] @checker = [:checker] end |
Instance Method Details
#example(compilation, example) ⇒ Object
16 17 18 |
# File 'lib/mumukit/metatest/framework.rb', line 16 def example(compilation, example) @checker.check(@runner.run(compilation, example), example) end |