Skip to content

Commit a5ce69c

Browse files
author
Lindsay Carr
committed
added test for two new access functions
1 parent 721100c commit a5ce69c

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

tests/testthat/test-access_gsplot.R

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,3 +141,16 @@ test_that("summary ",{
141141
points(x=3:10,y=4:11, side=c(1,2), log='xy')
142142
expect_output(summary(usrDef),regexp = "2 views:")
143143
})
144+
145+
test_that("users can access metadata", {
146+
gs <- gsplot()
147+
expect_equal(whatDate(gs), Sys.Date())
148+
149+
old.version <- "0.5.2"
150+
gs2 <- gsplot(gsplot.version=old.version)
151+
expect_equal(whatVersion(gs2), old.version)
152+
153+
old.date <- as.Date("2010-10-21")
154+
gs3 <- gsplot(created=old.date)
155+
expect_equal(whatDate(gs3), old.date)
156+
})

0 commit comments

Comments
 (0)