File tree Expand file tree Collapse file tree 3 files changed +10
-3
lines changed
Expand file tree Collapse file tree 3 files changed +10
-3
lines changed Original file line number Diff line number Diff line change 55 * inst/include/Rcpp/sugar/matrix/matrix_functions.h: Idem
66 * inst/unitTests/cpp/sugar.cpp: Unit tests for new functions
77 * inst/unitTests/runit.sugar.R: Idem
8+ * inst/unitTests/runit.dispatch.R (test.ExpressionVector): Use
9+ expression rather than parse, correct typo
810
9112016-10-21 Qiang Kou <qkou@umail.iu.edu>
1012
Original file line number Diff line number Diff line change 1818 \item Added new (matrix ) Sugar functions \code {eye()},
1919 \code {ones()}, \code {zeros()} (PR \ghpr {566 } by Nathan Russell )
2020 }
21+ \item Changes in Rcpp unit tests
22+ \itemize {
23+ \item A test for expression vectors was corrected.
24+ }
2125 \item Updated Date and Datetime vector classes :
2226 \itemize {
2327 \item The \code {DateVector } and \code {DatetimeVector } classes were renamed
Original file line number Diff line number Diff line change 11# !/usr/bin/env r
22# -*- mode: R; tab-width: 4; -*-
33#
4- # Copyright (C) 2009 - 2014 Dirk Eddelbuettel and Romain Francois
4+ # Copyright (C) 2009 - 2016 Dirk Eddelbuettel and Romain Francois
5+ # Copyright (C) 2016 Dirk Eddelbuettel, Romain Francois and Nathan Russell
56#
67# This file is part of Rcpp.
78#
@@ -44,8 +45,8 @@ if (.runThisTest) {
4445 }
4546
4647 test.ExpressionVector <- function () {
47- x <- parse( text = " rnrom; rnrom (10); mean(1:10)" )
48- checkEquals(first_el(x ), x [1 ], msg = " RCPP_RETURN_VECTOR (numeric )" )
48+ x <- expression( rnorm , rnorm (10 ), mean(1 : 10 ))
49+ checkEquals(first_el(x ), x [1 ], msg = " RCPP_RETURN_VECTOR (expression )" )
4950 }
5051
5152 test.GenericVector <- function () {
You can’t perform that action at this time.
0 commit comments