using vector class
argument in expect_is
causes errors in test_dir
#293
Milestone
class
argument in expect_is
causes errors in test_dir
#293
TL;DR: When calling
test_dir
on a test containing anexpect_is
call with character vectorclass
argument, two errors are reported, causing an error in avapply
call before ever reporting the failures.expect_is
mangles the error message slightly when theclass
argument is a vector:Error: x inherits from a not bx inherits from a not c
which isn't so bad, but when used in test_dir (and quite possibly others) it leads to the following cryptic error:
Error in vapply(seq_len(n), function(i) { : values must be length 1, but FUN(X[[1]]) result is length 2
The error is thrown by the following line in
test_dir
:because
failure_summary
returns a vector of length two mangling thevapply
callHope this is helpful!
The text was updated successfully, but these errors were encountered: