Skip to content

Commit 197dfd7

Browse files
committed
added tersts
1 parent 1d53123 commit 197dfd7

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

inst/tests/tests.Rraw

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21669,3 +21669,10 @@ test(2375.3, print(data.table(x=c("short", "abcdefghijklmnopqrstuvwxyz"))), outp
2166921669
test(2375.4, print(data.table(x="abcdefghijklmnopqrstuvwxyz")), output="abcdefghijklmnopqrstuvwxyz", options=list(width=200, datatable.prettyprint.char=NULL))
2167021670
test(2375.5, print(data.table(id=1L, score=99.1, txt="abcdefghijklmnopqrstuvwxyz")), output="abcdefghijklmn...", options=list(width=20, datatable.prettyprint.char=NULL))
2167121671
test(2375.6, print(data.table(x=rep("ABCDEFGHIJKLMNOPQRSTUVWXYZ", 1e6)), topn=1), output="1000000: ABCDEFGHIJKLM...", options=list(width=25, datatable.prettyprint.char=NULL))
21672+
21673+
# #7252 as.IDate()/as.ITime preserve names
21674+
test(2376.1, names(as.IDate(c(a = "2019-01-01"))), "a")
21675+
test(2376.2, names(c(a = as.IDate("2019-01-01"))), "a")
21676+
test(2376.3, names(as.ITime(c(a = "12:00:00"))), "a")
21677+
test(2376.4, names(as.IDate(structure(as.POSIXct("2019-01-01 12:00:00"), names = "a"))), "a")
21678+
test(2376.5, names(as.ITime(structure(3600, names = "a"))), "a")

0 commit comments

Comments
 (0)