Skip to content

Commit 25eaa65

Browse files
committed
update testcases
1 parent f1997e0 commit 25eaa65

File tree

1 file changed

+14
-4
lines changed

1 file changed

+14
-4
lines changed

inst/tests/tests.Rraw

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20599,11 +20599,21 @@ 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+
d_int = .Date(1L)
20603+
d_dbl = .Date(1)
2060220604
x = data.table(a=1L)
2060320605
y = data.table(c=1L, d=1)
20604-
test(2297.1, options=c(datatable.verbose=TRUE), y[x, on=.(c == a, d == a)], data.table(c=1L, d=1L), output="Coercing .*c to type double")
20605-
test(2297.2, options=c(datatable.verbose=TRUE), y[x, on=.(d == a, c == a)], data.table(c=1L, d=1L), output="Coercing .*c to type double")
20606+
test(2297.01, options=c(datatable.verbose=TRUE), y[x, on=.(c == a, d == a)], data.table(c=1L, d=1L), output="Coercing .*c to type double")
20607+
test(2297.02, options=c(datatable.verbose=TRUE), y[x, on=.(d == a, c == a)], data.table(c=1L, d=1L), output="Coercing .*c to type double")
20608+
x = data.table(a=d_int)
20609+
y = data.table(c=d_int, d=d_dbl)
20610+
test(2297.03, options=c(datatable.verbose=TRUE), y[x, on=.(c == a, d == a)], data.table(c=d_int, d=d_int), output="Coercing .*c to type double")
20611+
test(2297.04, options=c(datatable.verbose=TRUE), y[x, on=.(d == a, c == a)], data.table(c=d_int, d=d_int), output="Coercing .*c to type double")
2060620612
x = data.table(a=1)
2060720613
y = data.table(c=1, d=1L)
20608-
test(2297.3, options=c(datatable.verbose=TRUE), y[x, on=.(c == a, d == a)], data.table(c=1, d=1), output="Coercing .*d to type double")
20609-
test(2297.4, options=c(datatable.verbose=TRUE), y[x, on=.(d == a, c == a)], data.table(c=1, d=1), output="Coercing .*d to type double")
20614+
test(2297.11, options=c(datatable.verbose=TRUE), y[x, on=.(c == a, d == a)], data.table(c=1, d=1), output="Coercing .*d to type double")
20615+
test(2297.12, options=c(datatable.verbose=TRUE), y[x, on=.(d == a, c == a)], data.table(c=1, d=1), output="Coercing .*d to type double")
20616+
x = data.table(a=d_dbl)
20617+
y = data.table(c=d_dbl, d=d_int)
20618+
test(2297.13, options=c(datatable.verbose=TRUE), y[x, on=.(c == a, d == a)], data.table(c=d_dbl, d=d_dbl), output="Coercing .*d to type double")
20619+
test(2297.14, options=c(datatable.verbose=TRUE), y[x, on=.(d == a, c == a)], data.table(c=d_dbl, d=d_dbl), output="Coercing .*d to type double")

0 commit comments

Comments
 (0)