Skip to content

Commit d5c933b

Browse files
added atime performance test
1 parent 1887699 commit d5c933b

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.ci/atime/tests.R

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -286,5 +286,17 @@ test.list <- atime::atime_test_list(
286286
Slow = "548410d23dd74b625e8ea9aeb1a5d2e9dddd2927", # Parent of the first commit in the PR (https://github.com/Rdatatable/data.table/commit/548410d23dd74b625e8ea9aeb1a5d2e9dddd2927)
287287
Fast = "c0b32a60466bed0e63420ec105bc75c34590865e"), # Commit in the PR (https://github.com/Rdatatable/data.table/pull/7144/commits) that uses a much faster implementation
288288

289+
# Test case adapted from https://github.com/Rdatatable/data.table/issues/4177 which is where the issue was reported.
290+
# Fixed in https://github.com/Rdatatable/data.table/pull/7236
291+
"fwrite select parameter improved in #4177" = atime::atime_test(
292+
setup = {
293+
set.seed(1)
294+
DT = data.table(a = rnorm(N), b = rnorm(N), c = rnorm(N), d = rnorm(N), e = rnorm(N))
295+
temp_file = tempfile()
296+
},
297+
expr = data.table::fwrite(DT, temp_file, select = c("a", "b", "c")),
298+
Slow = "66cb6d2393cef30083b444346a7600a079207806", # Parent of the first commit in the PR (https://github.com/Rdatatable/data.table/commit/66cb6d2393cef30083b444346a7600a079207806)
299+
Fast = "1887699fe965b5aa1fb8cb16b5507b7a5cbf5c85"), # Commit in the PR (https://github.com/Rdatatable/data.table/pull/4177/commits) that adds select parameter
300+
289301
tests=extra.test.list)
290302
# nolint end: undesirable_operator_linter.

0 commit comments

Comments
 (0)