holds.true: To be used in a test block

View source: R/tests_for_ps.r

holds.trueR Documentation

To be used in a test block

Description

Checks whether a certain condition on the stud's generated variables hold true

Usage

holds.true(
  cond,
  short.message = failure.message,
  failure.message = "Failure in holds.true",
  success.message = "Great, the condition {{cond}} holds true in your solution!",
  part = NULL,
  ps = get.ps(),
  stud.env = ps$stud.env,
  cond.str = NULL,
  ...
)

Arguments

cond

The condition to be checked

failure.message

The failure message to be shown if the text fails.

success.message

The success message


skranz/RTutor documentation built on Feb. 7, 2024, 12:53 a.m.