Class: AnswerFactory::Machines::TestCase

Inherits:
Object
  • Object
show all
Defined in:
lib/machines/evaluate_with_test_cases.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ TestCase

Returns a new instance of TestCase.



146
147
148
149
# File 'lib/machines/evaluate_with_test_cases.rb', line 146

def initialize(options = {})
  @inputs = options[:inputs] || {}
  @outputs = options[:outputs] || {}
end

Instance Attribute Details

#inputsObject

Returns the value of attribute inputs.



144
145
146
# File 'lib/machines/evaluate_with_test_cases.rb', line 144

def inputs
  @inputs
end

#outputsObject

Returns the value of attribute outputs.



144
145
146
# File 'lib/machines/evaluate_with_test_cases.rb', line 144

def outputs
  @outputs
end