Skip to content

Commit dc9a32a

Browse files
committed
verbose=FALSE for 3 tests to pass test.data.table(verbose=TRUE)
1 parent ba63147 commit dc9a32a

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

inst/tests/tests.Rraw

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6571,11 +6571,13 @@ if (test_xts) {
65716571

65726572
# 890 -- key argument for as.data.table.xts
65736573
x = xts(1:10, as.Date(1:10, origin = "1970-01-01"))
6574+
old = options(datatable.verbose=FALSE)
65746575
test(1465.18, capture.output(as.data.table(x, key="index")),
65756576
c(" index V1", " 1: 1970-01-02 1", " 2: 1970-01-03 2",
65766577
" 3: 1970-01-04 3", " 4: 1970-01-05 4", " 5: 1970-01-06 5",
65776578
" 6: 1970-01-07 6", " 7: 1970-01-08 7", " 8: 1970-01-09 8",
65786579
" 9: 1970-01-10 9", "10: 1970-01-11 10"))
6580+
options(old)
65796581

65806582
Sys.setenv("_R_CHECK_LENGTH_1_LOGIC2_" = TRUE)
65816583
}
@@ -9481,7 +9483,9 @@ set.seed(1L)
94819483
dt = data.table(x=sample(3,10,TRUE), y=sample(2,10,TRUE), z=1L+sample(2,10,TRUE))
94829484
test(1657, dt[x %between% list(y,z)], dt[x>=y & x<=z])
94839485

9484-
# fwrite tests
9486+
## fwrite tests
9487+
oldverbose = options(datatable.verbose=FALSE) # using output= for these tests so turn off verbose mode
9488+
94859489
# without quoting
94869490
test(1658.01, fwrite(data.table(a=c(NA, 2, 3.01), b=c('foo', NA, 'bar'))),
94879491
output=c("a,b", ",foo", "2,", "3.01,bar"))
@@ -9673,6 +9677,7 @@ test(1658.59, fwrite(data.table(a=list('a')), verbose=TRUE),
96739677
output='fields will be quoted if the field contains either sep.*sep2.*list column')
96749678
test(1658.60, fwrite(data.table(r=as.raw(0))), error = "'raw' - not yet implemented")
96759679

9680+
options(oldverbose)
96769681
## End fwrite tests
96779682

96789683
# tests for #679, inrange(), FR #707
@@ -9930,7 +9935,9 @@ foo <- function(annot=c("a", "b")) {
99309935
suppressWarnings(ro$dt[, flag := TRUE])
99319936
ro
99329937
}
9938+
old = options(datatable.verbose=FALSE)
99339939
test(1685, grep("dtu", capture.output(foo())), 7L)
9940+
options(old)
99349941

99359942
# fix for #1771
99369943
test(1685.1, uniqueN(1L), 1L)

0 commit comments

Comments
 (0)