[Blotter-commits] r1286 - in pkg/FinancialInstrument: . inst inst/tests tests
noreply at r-forge.r-project.org
noreply at r-forge.r-project.org
Wed Dec 12 21:47:39 CET 2012
Author: gsee
Date: 2012-12-12 21:47:38 +0100 (Wed, 12 Dec 2012)
New Revision: 1286
Added:
pkg/FinancialInstrument/inst/tests/
pkg/FinancialInstrument/inst/tests/test-C2M.R
pkg/FinancialInstrument/tests/
pkg/FinancialInstrument/tests/test-all.R
Modified:
pkg/FinancialInstrument/DESCRIPTION
pkg/FinancialInstrument/NEWS
Log:
- Now using testthat for package testing
- added 2 simple tests
- FinancialInstrument_1.1 is now on CRAN; Next CRAN release will be FinancialInstrument_1.2
Modified: pkg/FinancialInstrument/DESCRIPTION
===================================================================
--- pkg/FinancialInstrument/DESCRIPTION 2012-12-12 20:26:24 UTC (rev 1285)
+++ pkg/FinancialInstrument/DESCRIPTION 2012-12-12 20:47:38 UTC (rev 1286)
@@ -9,9 +9,9 @@
Ulrich, Brian G. Peterson, Garrett See
Description: Infrastructure for defining meta-data and
relationships for financial instruments.
-Version: 1.0.4
+Version: 1.1.1
URL: https://r-forge.r-project.org/projects/blotter/
-Date: $Date$
+Date: 2012-12-12
Depends:
R (>= 2.12.0),
quantmod(>= 0.3-17),
@@ -19,7 +19,8 @@
zoo(>= 1.7-5)
Suggests:
foreach,
- XML
+ XML,
+ testthat
Collate:
'buildHierarchy.R'
'buildSpread.R'
Modified: pkg/FinancialInstrument/NEWS
===================================================================
--- pkg/FinancialInstrument/NEWS 2012-12-12 20:26:24 UTC (rev 1285)
+++ pkg/FinancialInstrument/NEWS 2012-12-12 20:47:38 UTC (rev 1286)
@@ -1,3 +1,12 @@
+Changes in Version 1.2
+======================
+
+TESTS
+-----
+
+* Now using testthat for package testing
+
+
Changes in Version 1.1
======================
Added: pkg/FinancialInstrument/inst/tests/test-C2M.R
===================================================================
--- pkg/FinancialInstrument/inst/tests/test-C2M.R (rev 0)
+++ pkg/FinancialInstrument/inst/tests/test-C2M.R 2012-12-12 20:47:38 UTC (rev 1286)
@@ -0,0 +1,7 @@
+context("month codes")
+
+test_that("C2M", {
+ expect_identical(unname(C2M()), month.abb)
+ expect_identical(names(C2M()),
+ c("F", "G", "H", "J", "K", "M", "N", "Q", "U", "V", "X", "Z"))
+})
Added: pkg/FinancialInstrument/tests/test-all.R
===================================================================
--- pkg/FinancialInstrument/tests/test-all.R (rev 0)
+++ pkg/FinancialInstrument/tests/test-all.R 2012-12-12 20:47:38 UTC (rev 1286)
@@ -0,0 +1,4 @@
+library(testthat)
+library(FinancialInstrument)
+
+test_package("FinancialInstrument")
\ No newline at end of file
More information about the Blotter-commits
mailing list