Skip to content

Commit 1d7a8c2

Browse files
committed
fix old test case
1 parent 3aba1cc commit 1d7a8c2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

inst/tests/tests.Rraw

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15727,7 +15727,8 @@ DT = data.table(z = 1i)
1572715727
test(2069.33, DT[DT, on = 'z'], error = "Type 'complex' is not supported for joining/merging")
1572815728

1572915729
# forder verbose message when !isReallyReal Date, #1738
15730-
DT = data.table(d=sample(seq(as.Date("2015-01-01"), as.Date("2015-01-05"), by="days"), 20, replace=TRUE))
15730+
date_dbl = as.Date(as.double(seq(as.Date("2015-01-01"), as.Date("2015-01-05"), by="days")), origin="1970-01-01")
15731+
DT = data.table(d=sample(date_dbl, 20, replace=TRUE))
1573115732
test(2070.01, typeof(DT$d), "double")
1573215733
test(2070.02, DT[, .N, keyby=d, verbose=TRUE], output="Column 1.*date.*8 byte double.*no fractions are present.*4 byte integer.*to save space and time")
1573315734

@@ -20604,4 +20605,4 @@ x = data.table(a=date_int, b=1L)
2060420605
y = data.table(c=date_int, d=date_dbl)
2060520606

2060620607
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.")
20607-
test(2297.2, options=c(datatable.verbose=TRUE), y[x, on=.(c == a, d == a)], data.table(c=date_dbl, d=date_dbl, b=1L), output="coercing to double.")
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.")

0 commit comments

Comments
 (0)