check_solution: Check that the automatic solution generation function is well...

Description Usage Arguments

View source: R/utils.r

Description

Check that the automatic solution generation function is well written. It is useful when writing exercices

Usage

1
check_solution(gen_sol, params, solution)

Arguments

gen_sol

function that generates the solution

params

named list of arguments of gen_sol

solution

the expected solution that should be calculated when calling gen_sol with the parameters params


mpascucci/morexams documentation built on Feb. 11, 2022, 4:02 p.m.