Skip to content

Commit 657cf17

Browse files
test
1 parent a25400a commit 657cf17

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

inst/tests/tests.Rraw

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21069,3 +21069,8 @@ if (exists("sort_by", "package:base")) {
2106921069
test(2306.23, DT1[, sort_by(.SD, ~a + b)], data.table(a=c(1, 2, 3, 3, NA), b=c(4L, 2L, 0L, 3L, 1L)))
2107021070
test(2306.24, DT1[, sort_by(.SD, ~.(a, b))], data.table(a=c(1, 2, 3, 3, NA), b=c(4L, 2L, 0L, 3L, 1L)))
2107121071
}
21072+
21073+
#test for #6806
21074+
DT2 <- data.table(a = 1:3, b = 4:6)
21075+
setindexv(DT2, c("b", "a"))
21076+
test(1775.2,{ print(DT2); TRUE },options = c(datatable.show.indices = TRUE),output = c("Index: <b__a>", " a b", "1: 1 4", "2: 2 5", "3: 3 6"))

0 commit comments

Comments
 (0)