val_has_length: Test that the value of the expression has a particular...

Description Usage Arguments Value See Also Examples

View source: R/answerTests2.R

Description

Test the the length of e$val is that given by the first argument.

Usage

1

Arguments

len

expected length of the variable created by a user

Value

TRUE or FALSE

See Also

Other AnswerTests: AnswerTests, any_of_exprs(), calculates_same_value(), expr_creates_var(), expr_identical_to(), expr_is_a(), expr_uses_func(), func_of_newvar_equals(), omnitest(), val_matches(), var_is_a()

Examples

1
2
3
4
5
6
## Not run: 
# Test that the user has created a varible of length 10
#
val_has_length(10)

## End(Not run)

swirldev/swirl documentation built on Jan. 17, 2020, 6:28 p.m.