check_test_integrity: Check to ensure exercise tests have not been altered

Description Usage Arguments Value

View source: R/exercise.R

Description

Compares the tests from the user's modified exercise file to the tests included in the source exercise file. Since the actual tests run are those included in the source file, the results displayed for the user may not match the results they would get if their tests were run.

Usage

1
check_test_integrity(file_lines, test_lines)

Arguments

file_lines

character vector of exercise file lines

test_lines

character vector of original test lines

Value

a list containing: - 'success': logical value indicating whether the check succeeded - 'msg': character value indicating the success/failure message


ericwburden/trainr documentation built on Jan. 28, 2022, 2:21 p.m.