Nothing
test_that('the "blockchain_dot_com_symbols" function returns a list', {
skip_on_cran()
expect_type(blockchain_dot_com_symbols(), 'list')
})
test_that('the "blockchain_dot_com_symbol" function returns a list when blank or
with different casing', {
skip_on_cran()
expect_type(blockchain_dot_com_symbol('BTC-USD'), 'list')
expect_type(blockchain_dot_com_symbol('btc-usd'), 'list')
expect_type(blockchain_dot_com_symbol('BtC-uSd'), 'list')
expect_type(blockchain_dot_com_symbol(''), 'list')
})
test_that('the "blockchain_dot_com_ticker_symbol" function returns a list no
matter the casing', {
skip_on_cran()
expect_type(blockchain_dot_com_ticker_symbol('BTC-USD'), 'list')
expect_type(blockchain_dot_com_ticker_symbol('btc-usd'), 'list')
expect_type(blockchain_dot_com_ticker_symbol('BtC-uSD'), 'list')
})
test_that('the "blockchain_dot_com_ticker_symbol" function returns a data.frame
when no symbol is provided', {
skip_on_cran()
expect_s3_class(blockchain_dot_com_ticker_symbol(''), 'data.frame')
})
test_that('the "blockchain_dot_com_tickers" function returns a data.frame', {
skip_on_cran()
expect_s3_class(blockchain_dot_com_tickers(), 'data.frame')
})
test_that('the "blockchain_dot_com_l2_order_book" function returns a list
containing a bids and an asks data.frame', {
skip_on_cran()
symbol <- 'BTC-USD'
l2_order_book <- blockchain_dot_com_l2_order_book(symbol)
expect_s3_class(l2_order_book$bids, 'data.frame')
expect_s3_class(l2_order_book$asks, 'data.frame')
})
test_that('the "blockchain_dot_com_l2_order_book" function returns a list
containing a bids and an asks data.frame regardless of casing', {
skip_on_cran()
symbol <- 'btc-UsD'
l2_order_book <- blockchain_dot_com_l2_order_book(symbol)
expect_s3_class(l2_order_book$bids, 'data.frame')
expect_s3_class(l2_order_book$asks, 'data.frame')
})
test_that('the "blockchain_dot_com_l3_order_book" function returns a list
containing a bids and an asks data.frame', {
skip_on_cran()
symbol <- 'BTC-USD'
l3_order_book <- blockchain_dot_com_l3_order_book(symbol)
expect_s3_class(l3_order_book$bids, 'data.frame')
expect_s3_class(l3_order_book$asks, 'data.frame')
})
test_that('the "blockchain_dot_com_l3_order_book" function returns a list
containing a bids and an asks data.frame regardless of casing', {
skip_on_cran()
symbol <- 'btc-UsD'
l3_order_book <- blockchain_dot_com_l3_order_book(symbol)
expect_s3_class(l3_order_book$bids, 'data.frame')
expect_s3_class(l3_order_book$asks, 'data.frame')
})
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.