Skip to content

Commit c56a711

Browse files
committed
test case added
1 parent 3f5bed9 commit c56a711

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

inst/tests/tests.Rraw

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21077,4 +21077,8 @@ setindex(DT, b)
2107721077
test(2307, { capture.output(print(DT, class = TRUE, show.indices = TRUE)); TRUE })
2107821078

2107921079
# test for enhancing error message of invalid column #6512
21080-
test(2308, {msg <- tryCatch({ .Call("uniq_diff", as.integer(c(1, 2, -1, 4)), 4, FALSE); NULL }, error = function(e) e$message)print(msg)return(grepl("\\[-1\\]", msg))}, TRUE)
21080+
test(2308, {
21081+
msg <- tryCatch({ .Call("uniq_diff", as.integer(c(1, 2, -1, 4)), 4, FALSE); NULL }, error = function(e) e$message)
21082+
print(msg)
21083+
return(grepl("\\[-1\\]", msg))
21084+
}, TRUE)

0 commit comments

Comments
 (0)