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 5
5
* inst/include/Rcpp/sugar/matrix/matrix_functions.h: Idem
6
6
* inst/unitTests/cpp/sugar.cpp: Unit tests for new functions
7
7
* inst/unitTests/runit.sugar.R: Idem
8
+ * inst/unitTests/runit.dispatch.R (test.ExpressionVector): Use
9
+ expression rather than parse, correct typo
8
10
9
11
2016-10-21 Qiang Kou <
[email protected] >
10
12
Original file line number Diff line number Diff line change 18
18
\item Added new (matrix ) Sugar functions \code {eye()},
19
19
\code {ones()}, \code {zeros()} (PR \ghpr {566 } by Nathan Russell )
20
20
}
21
+ \item Changes in Rcpp unit tests
22
+ \itemize {
23
+ \item A test for expression vectors was corrected.
24
+ }
21
25
\item Updated Date and Datetime vector classes :
22
26
\itemize {
23
27
\item The \code {DateVector } and \code {DatetimeVector } classes were renamed
Original file line number Diff line number Diff line change 1
1
# !/usr/bin/env r
2
2
# -*- mode: R; tab-width: 4; -*-
3
3
#
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
5
6
#
6
7
# This file is part of Rcpp.
7
8
#
@@ -44,8 +45,8 @@ if (.runThisTest) {
44
45
}
45
46
46
47
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 )" )
49
50
}
50
51
51
52
test.GenericVector <- function () {
You can’t perform that action at this time.
0 commit comments