test_koan: Tests if the given answers pass all tests in the koan

Description Usage Arguments Value

Description

Tests if the given answers pass all tests in the koan

Usage

1
  test_koan(name, answer, detail = FALSE)

Arguments

name

character the name of the koan matching the file name minus the file extension

answer

character vector of ordered answers for a koan (answers replace '_')

detail

logical if TRUE, throws an exception detailing the position of the failing test. if false, returns false for a broken test

Value

logical or error (see param detail)


DASpringate/Rkoans documentation built on May 6, 2019, 12:55 p.m.