[Eventstudies-commits] r373 - pkg/inst/tests

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Wed Oct 8 01:24:09 CEST 2014


Author: chiraganand
Date: 2014-10-08 01:24:09 +0200 (Wed, 08 Oct 2014)
New Revision: 373

Modified:
   pkg/inst/tests/test_interfaces.R
Log:
Fixed test case to use Date class in eventlist.

Modified: pkg/inst/tests/test_interfaces.R
===================================================================
--- pkg/inst/tests/test_interfaces.R	2014-10-07 22:55:23 UTC (rev 372)
+++ pkg/inst/tests/test_interfaces.R	2014-10-07 23:24:09 UTC (rev 373)
@@ -14,7 +14,7 @@
     expected_outcomes <- c("success", "success")
 
     test_events <- data.frame(name = "ONGC",
-                              when = c("2011-08-01", "2010-05-14"),
+                              when = as.Date(c("2011-08-01", "2010-05-14")),
                               stringsAsFactors = FALSE)
     test_returns<- StockPriceReturns[complete.cases(StockPriceReturns$ONGC), "ONGC",
                                      drop = FALSE]



More information about the Eventstudies-commits mailing list