Skip to content

Commit

Permalink
regression test for #1873
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelChirico committed Apr 12, 2024
1 parent 6f008bd commit 9c6c2a3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions inst/tests/tests.Rraw
Original file line number Diff line number Diff line change
Expand Up @@ -18450,3 +18450,7 @@ test(2256.4, fread(f, verbose=TRUE), DT, output="sep=',' so dec set to '.'")
fwrite(DT, f, dec=',', sep=';')
test(2256.5, fread(f, verbose=TRUE), DT, output="dec=',' detected based on a balance of 18")
test(2256.6, fread('a;b\n1,14;5', verbose=TRUE), data.table(a=1.14, b=5L), output="dec=',' detected based on a balance of 1 ")

# helpful error about deleting during grouping, #1873
DT = data.table(id = c(1, 1, 2, 2), a = 1:4, b = 5:8)
test(2257, DT[ , c("c", "a") := .(a + 1, NULL), by=id], error="it's not possible to delete parts of a column")

0 comments on commit 9c6c2a3

Please sign in to comment.