File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # -------------------------------------------------------------------------------
2+ # Copyright (c) 2018-2020 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+ context(" ds.asCharacter::smk_dgr::setup" )
16+
17+ require(dsDangerClient )
18+
19+ connect.studies.dataset.cnsim(list (" LAB_TSC" ))
20+
21+ test_that(" setup" , {
22+ ds_expect_variables(c(" D" ))
23+ })
24+
25+ #
26+ # Tests
27+ #
28+
29+ context(" ds.asCharacter::smk_dgr::simple test" )
30+ test_that(" simple test" , {
31+ res <- ds.asCharacter(" D$LAB_TSC" )
32+
33+ expect_equal(length(res ), 2 )
34+ expect_equal(res $ is.object.created , " A data object <ascharacter.newobj> has been created in all specified data sources" )
35+ expect_equal(res $ validity.check , " <ascharacter.newobj> appears valid in all sources" )
36+ })
37+
38+ #
39+ # Done
40+ #
41+
42+ context(" ds.asCharacter::smk_dgr::stutdown" )
43+
44+ test_that(" setup" , {
45+ ds_expect_variables(c(" D" , " ascharacter.newobj" ))
46+ })
47+
48+ disconnect.studies.dataset.cnsim()
49+
50+ context(" ds.asCharacter::smk_dgr::done" )
You can’t perform that action at this time.
0 commit comments