def test_get_float(chromosome): factory = DirectSequenceOutputVariableFactory.get_float(RuntimeVariable.Coverage) assert isinstance(factory.get_value(chromosome), float) assert factory.get_value(chromosome) == 0.0
def test_get_integer(chromosome): factory = DirectSequenceOutputVariableFactory.get_integer(RuntimeVariable.Length) assert isinstance(factory.get_value(chromosome), int) assert factory.get_value(chromosome) == 0
def factory(): return DirectSequenceOutputVariableFactory( RuntimeVariable.TotalExceptionsTimeline, 0 )