Skip to content

Commit

Permalink
added test
Browse files Browse the repository at this point in the history
  • Loading branch information
nitish jha authored and nitish jha committed Apr 10, 2024
1 parent 58e335a commit 583ce4d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions inst/tests/nafill.Rraw
Original file line number Diff line number Diff line change
Expand Up @@ -155,9 +155,9 @@ test(4.26, colnamesInt(dt, c(1, 4), skip_absent = TRUE),as.integer( c(1,4)))
test(4.27, colnamesInt(dt, c("a", NA), skip_absent = TRUE),as.integer(c(1,0)))
test(4.28, colnamesInt(dt, c(1L, NA), skip_absent = TRUE), as.integer(c(1,NA)))
test(4.29, colnamesInt(dt, c(1, NA), skip_absent = TRUE), as.integer(c(1,NA)))
test(4.30, colnamesInt(dt, c(1, NA), skip_absent = NULL), error="skip_absent must be TRUE or FALSE")
names(dt) <- NULL
test(4.30, colnamesInt(dt, "a"), error="has no names")

test(4.31, colnamesInt(dt, "a"), error="has no names")

# verbose
dt = data.table(a=c(1L, 2L, NA_integer_), b=c(1, 2, NA_real_))
Expand Down

0 comments on commit 583ce4d

Please sign in to comment.