Skip to content

Commit f17a9a4

Browse files
improved error mssg in 2nd test
1 parent 4866a2b commit f17a9a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

inst/tests/tests.Rraw

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21198,6 +21198,6 @@ test(2320.1, fread(cmd="false"), error="External command failed with exit code")
2119821198
if (test_R.utils) {
2119921199
corrupted_data <- c(0x1F, 0x8B, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, rep(0xFF, 50), 0x00, 0x00, 0x00, 0x00, 0xFF, 0xFF, 0xFF, 0xFF)
2120021200
writeBin(as.raw(corrupted_data), f<-tempfile(fileext=".csv.gz"))
21201-
test(2320.2, fread(f), error="decompressFile.*failed|failed.*decompress")
21201+
test(2320.2, fread(f), error="R.utils::decompressFile failed to decompress") # Compressed file decompression error handling
2120221202
unlink(f)
2120321203
}

0 commit comments

Comments
 (0)