powered by
length
Test the the length of e$val is that given by the first argument.
e$val
val_has_length(len)
expected length of the variable created by a user
TRUE or FALSE
TRUE
FALSE
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()
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()
# NOT RUN { # Test that the user has created a varible of length 10 # val_has_length(10) # }
Run the code above in your browser using DataLab