Skip to content

Commit

Permalink
fix failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewallenbruce committed Jul 21, 2024
1 parent ad6a8a8 commit a34b8f2
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 16 deletions.
22 changes: 13 additions & 9 deletions pkgdown/_pkgdown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,14 @@ navbar:
components:
home:
icon: fas fa-home fa-lg
text: ""
href: index.html
aria-label: Home
text: ""
intro:
icon: ~
text: Getting started
href: articles/provider.html
aria-label: Intro
text: Getting started
reference:
text: Reference
href: reference/index.html
Expand All @@ -58,24 +60,28 @@ navbar:
news:
icon: far fa-newspaper fa-lg
href: news/index.html
text: ""
aria-label: News
title: "Changelog"
text: ""
github:
icon: fab fa-github fa-lg
href: https://github.com/andrewallenbruce/provider
aria-label: GitHub
linkedin:
icon: fas fa-linkedin fa-lg
href: https://www.linkedin.com/in/andybruce1/
href: https://www.linkedin.com/in/andrewallenbruce
aria-label: LinkedIn
twitter:
icon: fab fa-twitter fa-lg
href: http://twitter.com/aabrucehimni
href: http://twitter.com/andrewallbruce
aria-label: X
opengraph:
image:
src: man/figures/card.png
alt: "Provider Logo"
twitter:
creator: "@aabrucehimni"
site: "@aabrucehimni"
creator: "@andrewallbruce"
site: "@andrewallbruce"
card: summary_large_image

reference:
Expand Down Expand Up @@ -112,7 +118,6 @@ reference:
- prescribers
- prescribers_
- compare_hcpcs
- compare_conditions

- title: Classifications
desc: >
Expand All @@ -129,7 +134,6 @@ reference:
Years available to query for search functions.
contents:
- bene_years
- cc_years
- open_years
- out_years
- qpp_years
Expand Down
14 changes: 7 additions & 7 deletions tests/testthat/test-years.R
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
test_that("out_years() works", {

out <- out_years()
expect_equal(out, 2015:2021)
expect_vector(out, ptype = integer(), size = 7)
expect_equal(out, 2015:2022)
expect_vector(out, ptype = integer(), size = 8)

})

test_that("open_years() works", {

open <- open_years()
expect_equal(open, 2016:2022)
expect_equal(open, 2017:2023)
expect_vector(open, ptype = integer(), size = 7)

})
Expand All @@ -18,16 +18,16 @@ test_that("open_years() works", {
test_that("util_years() works", {

util <- util_years()
expect_equal(util, 2013:2021)
expect_vector(util, ptype = integer(), size = 9)
expect_equal(util, 2013:2022)
expect_vector(util, ptype = integer(), size = 10)

})

test_that("rx_years() works", {

rx <- rx_years()
expect_equal(rx, 2013:2021)
expect_vector(rx, ptype = integer(), size = 9)
expect_equal(rx, 2013:2022)
expect_vector(rx, ptype = integer(), size = 10)

})

Expand Down

0 comments on commit a34b8f2

Please sign in to comment.