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

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Wed Oct 8 00:55:24 CEST 2014


Author: chiraganand
Date: 2014-10-08 00:55:23 +0200 (Wed, 08 Oct 2014)
New Revision: 372

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

Modified: pkg/inst/tests/test_eventstudy.R
===================================================================
--- pkg/inst/tests/test_eventstudy.R	2014-10-07 22:45:58 UTC (rev 371)
+++ pkg/inst/tests/test_eventstudy.R	2014-10-07 22:55:23 UTC (rev 372)
@@ -60,7 +60,7 @@
 
 ## Check the previous date
 cat("\nTesting handling of missing data on event date: ")
-eventdate <- "2004-01-10"
+eventdate <- as.Date("2004-01-10")
 eventdate_output <- "2004-01-09"
 eventslist <- data.frame(name = "ITC", when = eventdate,
                          stringsAsFactors = FALSE)



More information about the Eventstudies-commits mailing list