Skip to content

Commit 7d7e5c8

Browse files
Merge remote-tracking branch 'upstream/master'
2 parents 5b903af + d541611 commit 7d7e5c8

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

ChangeLog

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
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

911
2016-10-21 Qiang Kou <[email protected]>
1012

inst/NEWS.Rd

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@
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

inst/unitTests/runit.dispatch.R

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
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() {

0 commit comments

Comments
 (0)