Skip to content

Commit cf3198d

Browse files
committed
test: dataframe arg test
1 parent 62e28cd commit cf3198d

1 file changed

Lines changed: 30 additions & 0 deletions

File tree

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
#-------------------------------------------------------------------------------
2+
# Copyright (c) 2018-2022 University of Newcastle upon Tyne. All rights reserved.
3+
#
4+
# This program and the accompanying materials
5+
# are made available under the terms of the GNU Public License v3.0.
6+
#
7+
# You should have received a copy of the GNU General Public License
8+
# along with this program. If not, see <http://www.gnu.org/licenses/>.
9+
#-------------------------------------------------------------------------------
10+
11+
#
12+
# Set up
13+
#
14+
15+
connect.studies.dataset.cnsim(list("LAB_TSC"))
16+
17+
#
18+
# Tests
19+
#
20+
21+
context("ds.asDataFrame::arg::test errors")
22+
test_that("asDataFrame_errors", {
23+
expect_error(ds.asDataMatrix(), "Please provide the name of the input vector!", fixed=TRUE)
24+
})
25+
26+
#
27+
# Done
28+
#
29+
30+
disconnect.studies.dataset.cnsim()

0 commit comments

Comments
 (0)