Skip to content

Commit 2a2f2c4

Browse files
error message
1 parent f5b7f3e commit 2a2f2c4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

inst/tests/nafill.Rraw

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,8 @@ x = 1:10
112112
test(3.01, nafill(x, "locf", fill=0L), x)
113113
test(3.02, setnafill(list(copy(x)), "locf", fill=0L), list(x))
114114
test(3.03, setnafill(x, "locf"), error="in-place update is supported only for list")
115-
test(3.04, nafill(letters[1:5], fill=0), error="must be numeric type, or list/data.table")
116-
test(3.05, setnafill(list(letters[1:5]), fill=0), error="must be numeric type, or list/data.table")
115+
test(3.04, nafill(letters[1:5], fill=0), error="must be logical/numeric type, or list/data.table")
116+
test(3.05, setnafill(list(letters[1:5]), fill=0), error="must be logical/numeric type, or list/data.table")
117117
test(3.06, nafill(x, fill=1:2), error="fill must be a vector of length 1.*fcoalesce")
118118
test(3.07, nafill(x, "locf", fill=1:2), error="fill must be a vector of length 1.*x\\.$")
119119
test(3.08, nafill(x, fill="asd"), x, warning=c("Coercing.*character.*integer","NAs introduced by coercion"))

0 commit comments

Comments
 (0)