Skip to content

Commit

Permalink
Update nafill.Rraw
Browse files Browse the repository at this point in the history
  • Loading branch information
Nj221102 authored Apr 11, 2024
1 parent 02d758d commit 1de9230
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion inst/tests/nafill.Rraw
Original file line number Diff line number Diff line change
Expand Up @@ -156,8 +156,9 @@ test(4.27, colnamesInt(dt, c("a", NA), skip_absent=TRUE), c(1L,0L))
test(4.28, colnamesInt(dt, c(1L, 0L), skip_absent=TRUE), error="received non-existing column*.*0")
test(4.29, colnamesInt(dt, c(1, -5), skip_absent=TRUE), error="received non-existing column*.*-5")
test(4.30, colnamesInt(dt, c(1, 4), skip_absent=NULL), error="skip_absent must be TRUE or FALSE")
test(4.31, colnamesInt(dt, c(1L, 1000L), skip_absent=TRUE), c(1L,1000L))
names(dt) <- NULL
test(4.31, colnamesInt(dt, "a"), error="has no names")
test(4.32, 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 1de9230

Please sign in to comment.