Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions inst/tests/tests.Rraw
Original file line number Diff line number Diff line change
Expand Up @@ -21858,3 +21858,14 @@ test(2344.04, key(DT[, .(V4 = c("b", "a"), V2, V5 = c("y", "x"), V1)]), c("V1",

# fread with quotes and single column #7366
test(2345, fread('"this_that"\n"2025-01-01 00:00:01"'), data.table(this_that = as.POSIXct("2025-01-01 00:00:01", tz="UTC")))

# Test cases that reproduce the segfault when fread encounters \\x1a (ASCII SUB) character at or near end of field #7407
test(9063.1, {
fread(text=paste0("foo\n", strrep("a", 4096*100), "\x1a"))
TRUE
}, TRUE)

test(9063.2, {
fread(text="a,b\n1,2\n3,4\x1a")
TRUE
}, TRUE)
Loading