Skip to content

Commit

Permalink
Remove invalid (and unnecessary) year check
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanieschneider committed Jan 27, 2025
1 parent 337c5db commit 8fd31bd
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: unstruwwel
Title: Detect and Parse Historic Dates
Version: 0.2.1
Version: 0.2.2
Authors@R: person('Stefanie', 'Schneider', email = 'stefanie.schneider@itg.uni-muenchen.de', role = c('cre', 'aut'), comment = c(ORCID = "0000-0003-4915-6949"))
Maintainer: Stefanie Schneider <stefanie.schneider@itg.uni-muenchen.de>
Description: Automatically converts language-specific verbal information, e.g., "1st half of the 19th century," to its standardized numerical counterparts, e.g., "1801-01-01/1850-12-31." It follows the recommendations of the 'MIDAS' ('Marburger Informations-, Dokumentations- und Administrations-System'), see <doi:10.11588/artdok.00003770>.
Expand Down
5 changes: 5 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# unstruwwel 0.2.2

* Remove invalid year check (`expect_error(Year$new(2025))`)


# unstruwwel 0.2.1

* Split given name and family name in DESCRIPTION
Expand Down
1 change: 0 additions & 1 deletion tests/testthat/test-year.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
test_that("invalid year", {
expect_error(Year$new(2025))
expect_error(Year$new(197.5))
expect_error(Year$new(c(197, 198)))
})
Expand Down

0 comments on commit 8fd31bd

Please sign in to comment.