Skip to content

Commit a75fb0e

Browse files
committed
add minimal test
1 parent ff934cc commit a75fb0e

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

inst/tests/tests.Rraw

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20599,10 +20599,8 @@ test(2295.3, is.data.table(d2))
2059920599
test(2296, d2[x %no such operator% 1], error = '%no such operator%')
2060020600

2060120601
# coerce Dates to double if join on multiple columns, #6602
20602-
date_int = seq(as.Date('2015-01-01'), as.Date('2015-01-01'), by="day")
20603-
date_dbl = as.Date('2015-01-01')
20604-
x = data.table(a=date_int, b=1L)
20605-
y = data.table(c=date_int, d=date_dbl)
20602+
x = data.table(a=1L)
20603+
y = data.table(c=1L, d=2)
20604+
y[x, on=.(c == a, d == a)]
2060620605

20607-
test(2297.1, options=c(datatable.verbose=TRUE), y[x, on=.(c == a)], data.table(c=date_int, d=date_dbl, b=1L), output="No coercion needed.")
20608-
test(2297.2, options=c(datatable.verbose=TRUE), y[x, on=.(c == a, d == a)], data.table(c=date_int, d=date_int, b=1L), output="coercing to double.")
20606+
test(2297.1, options=c(datatable.verbose=TRUE), y[x, on=.(c == a, d == a)], data.table(c=date_int, d=date_int, b=1L), output="coercing to double.")

0 commit comments

Comments
 (0)