This module defines the bo_task behaviour.
Required callback functions: description/0, spec/0, timeout/0, tests/0, score/0.
result() = ok | {error, invalid | timeout} | {failures, [term()]}
solution() = fun((term()) -> term())
spec() = #{input := [binary()], output := binary()}
task() = #{name := module(), desc := binary(), spec := spec(), score := pos_integer()}
test() = fun((solution()) -> ok | {error, term()})
describe/1 | |
score/1 | |
test/3 | |
tester/2 |
describe(Task::module()) -> bo_task:task()
score(Task::module()) -> pos_integer()
test(Task::module(), Fun::solution(), Node::node()) -> result()
tester(Task::module(), Fun::solution()) -> result()
Generated by EDoc, Oct 12 2016, 05:23:52.