Can be called in a #< test block for a custom test.

check.assign.with.multiple.sol(
  sol1,
  sol2,
  sol3,
  sol4,
  sol5,
  ...,
  sol.list = list()
)

Arguments

sol1

An assignment that needs to be checked, e.g. x<-5. Similar for sol2, sol3, sol4, sol5.

Examples

# \donttest{ # Assume the task is that x shall be a number # below 11 and divisible by 5 check.assign.with.multiple.sol(x<-5, x<-10)
#> Error in new.env(parent = ps$ps.baseenv): use of NULL environment is defunct
# }