tests/testthat/test-fun.R

library(coindeskr)
context("get_currencies Output DF Check")

test_that("The output dataframe Type is ",{

        expect_equal(class(get_currency_list()),"data.frame")

})

context("get_current_price Output DF Check")

test_that("The output dataframe Type is ",{

        expect_equal(class(get_current_price()),"data.frame")

})

Try the coindeskr package in your browser

Any scripts or data that you put into this service are public.

coindeskr documentation built on May 2, 2019, 3:43 a.m.