Skip to content

Commit 91c53c5

Browse files
committed
add test for codecov
1 parent 33d7009 commit 91c53c5

File tree

1 file changed

+16
-10
lines changed

1 file changed

+16
-10
lines changed

inst/tests/tests.Rraw

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -20600,21 +20600,27 @@ test(2295.3, is.data.table(d2))
2060020600
test(2296, d2[x %no such operator% 1], error = '%no such operator%')
2060120601

2060220602
# coerce Dates to double if join on multiple columns, #6602
20603-
d_int = .Date(1L)
20604-
d_dbl = .Date(1)
2060520603
x = data.table(a=1L)
2060620604
y = data.table(c=1L, d=1)
2060720605
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")
2060820606
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")
20609-
x = data.table(a=d_int)
20610-
y = data.table(c=d_int, d=d_dbl)
20611-
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")
20612-
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")
2061320607
x = data.table(a=1)
2061420608
y = data.table(c=1, d=1L)
20615-
test(2297.11, options=c(datatable.verbose=TRUE), y[x, on=.(c == a, d == a)], data.table(c=1L, d=1L), output="Coercing double column x.c (which contains no fractions) to type integer")
20616-
test(2297.12, options=c(datatable.verbose=TRUE), y[x, on=.(d == a, c == a)], data.table(c=1L, d=1L), output="Coercing double column x.c (which contains no fractions) to type integer")
20609+
test(2297.03, options=c(datatable.verbose=TRUE), y[x, on=.(c == a, d == a)], data.table(c=1L, d=1L), output="Coercing double column x.c (which contains no fractions) to type integer")
20610+
test(2297.04, options=c(datatable.verbose=TRUE), y[x, on=.(d == a, c == a)], data.table(c=1L, d=1L), output="Coercing double column x.c (which contains no fractions) to type integer")
20611+
# dates
20612+
d_int = .Date(1L)
20613+
d_dbl = .Date(1)
20614+
x = data.table(a=d_int)
20615+
y = data.table(c=d_int, d=d_dbl)
20616+
test(2297.11, y[x, on=.(c == a, d == a)], data.table(c=d_int, d=d_int))
20617+
test(2297.12, y[x, on=.(d == a, c == a)], data.table(c=d_int, d=d_int))
2061720618
x = data.table(a=d_dbl)
2061820619
y = data.table(c=d_dbl, d=d_int)
20619-
test(2297.13, options=c(datatable.verbose=TRUE), y[x, on=.(c == a, d == a)], data.table(c=d_int, d=d_int), output="Coercing double column x.c (which contains no fractions) to type integer")
20620-
test(2297.14, options=c(datatable.verbose=TRUE), y[x, on=.(d == a, c == a)], data.table(c=d_int, d=d_int), output="Coercing double column x.c (which contains no fractions) to type integer")
20620+
test(2297.13, y[x, on=.(c == a, d == a)], data.table(c=d_int, d=d_int))
20621+
test(2297.14, y[x, on=.(d == a, c == a)], data.table(c=d_int, d=d_int))
20622+
# real double
20623+
x = data.table(a=1)
20624+
y = data.table(c=1.5, d=1L)
20625+
test(2297.21, y[x, on=.(c == a, d == a)], data.table(c=1, d=1))
20626+
test(2297.22, y[x, on=.(d == a, c == a)], data.table(c=1, d=1))

0 commit comments

Comments
 (0)