Skip to content

Commit 0df081b

Browse files
committed
addition of tests for R->kdb conversion
1 parent cb979fc commit 0df081b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/testthat/test-basic.R

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,10 @@ test_that("R types to kdb types", {
163163
expect_equal(dbl, c(okType = TRUE, okValue = TRUE))
164164
dblV <- execute(h, 'cc[;9h;(1. 2.)]', c(1., 2.))
165165
expect_equal(dblV, c(okType = TRUE, okValue = TRUE))
166+
date <- execute(h, 'cc[;14h;(),2012.02.02]',as.Date(c("2012-02-02")))
167+
expect_equal(date, c(okType = TRUE, okValue = TRUE))
168+
dateV <- execute(h, 'cc[;14h;(1995.08.09;1759.01.01)]',as.Date(c("1995-08-09","1759-01-01")))
169+
expect_equal(dateV, c(okType = TRUE, okValue = TRUE))
166170
unamedL <- execute(h, 'cc[;0h;((),1.;(),2.)]', list(1., 2.))
167171
expect_equal(unamedL, c(okType = TRUE, okValue = TRUE))
168172
unamedL2 <- execute(h, 'cc[;0h;((),1.;(),"2")]', list(1., "2"))

0 commit comments

Comments
 (0)