Skip to content

Commit 2128723

Browse files
author
Stefan Fleck
committed
fix test for qy() and add symmetric test for my()
1 parent 209ce33 commit 2128723

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/testthat/test_parser.R

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,8 @@ test_that("yq/qy work as expected", {
2121
c(20182L, 20174L, NA_integer_, NA_integer_, NA_integer_, NA_integer_)
2222
)
2323

24-
expect_identical(qy("stpQ42015"))
25-
26-
27-
24+
expect_identical(qy("stpQ42015"), dint::date_yq(2015, 4))
25+
expect_identical(yq("stp20154"), dint::date_yq(2015, 4))
2826
})
2927

3028

@@ -58,4 +56,6 @@ test_that("ym/my work as expected", {
5856
c(201802L, 201712L, NA_integer_, NA_integer_, NA_integer_, NA_integer_)
5957
)
6058

59+
expect_identical(my("stpm042015"), dint::date_ym(2015, 4))
60+
expect_identical(ym("stpm201504"), dint::date_ym(2015, 4))
6161
})

0 commit comments

Comments
 (0)