Skip to content

Commit

Permalink
update test-check_year_valid
Browse files Browse the repository at this point in the history
  • Loading branch information
lizihao-anu committed Dec 10, 2024
1 parent 4502403 commit a12ead9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/testthat/test-check_year_valid.R
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ test_that("Check year valid works for specific datasets ", {
expect_true(check_year_valid("2021", "nsu"))
expect_true(check_year_valid("2122", "nsu"))
expect_true(check_year_valid("2223", "nsu"))
expect_false(check_year_valid("2324", "nsu"))
expect_true(check_year_valid("2324", "nsu"))
expect_false(check_year_valid("2425", "nsu"))

# SPARRA
expect_false(check_year_valid("1415", "sparra"))
Expand All @@ -64,6 +65,7 @@ test_that("Check year valid works for specific datasets ", {
expect_true(check_year_valid("2122", "sparra"))
expect_true(check_year_valid("2223", "sparra"))
expect_true(check_year_valid("2324", "sparra"))
expect_true(check_year_valid("2425", "sparra"))

# HHG
expect_false(check_year_valid("1415", "hhg"))
Expand Down

0 comments on commit a12ead9

Please sign in to comment.