tests/testthat/test-nse-ad.R

context("advances-declines")

httptest::with_mock_api({
  test_that("output from nse_advances_declines is as expected", {
    
    testthat::skip_on_cran()
    testthat::skip_on_os("windows")
    testthat::skip_on_os("mac")
    
    iquotes <- nse_advances_declines()
    
    expect_equal(names(iquotes), c("index_name", "advances", "declines", "unchanged"))
  })
})

Try the nse2r package in your browser

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

nse2r documentation built on Nov. 1, 2022, 5:05 p.m.