Skip to content

Commit a11f8b5

Browse files
0-row table verbose output
1 parent 2bfbeb3 commit a11f8b5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

inst/tests/tests.Rraw

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10108,6 +10108,7 @@ test(1658.61, fwrite(data.table(a="a"), na="VERY LONG MISSING VALUE STRING !", q
1010810108
output="maxLineLen=66")
1010910109
## eol="" error
1011010110
test(1658.62, fwrite(data.table(a=1), tempfile(), eol=''), error='eol must be 1 or more bytes')
10111+
1011110112
## buffMB < single line width and < header width
1011210113
f = tempfile()
1011310114
test(1658.63, fwrite(data.table(a=strrep('x', 2**21)), f, buffMB=1.0), NULL)
@@ -10118,6 +10119,8 @@ test(1658.65, fwrite(DT, f, buffMB=1.0, nThread=1L), NULL)
1011810119
test(1658.66, file.size(f) > 2**20)
1011910120
unlink(f)
1012010121

10122+
test(1658.67, fwrite(data.table(a=numeric()), verbose=TRUE), output='No data rows present')
10123+
1012110124
options(oldverbose)
1012210125
## End fwrite tests
1012310126

0 commit comments

Comments
 (0)