Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
antaldaniel committed Dec 16, 2024
1 parent 87dd990 commit b2b8294
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 9 deletions.
Binary file modified data/iris_dataset.rda
Binary file not shown.
14 changes: 7 additions & 7 deletions tests/testthat/test-datacite.R
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
iris_datacite <- datacite(
Title = "Iris Dataset",
Creator = person(family="Anderson", given ="Edgar", role = "aut"),
Publisher = "American Iris Society",
PublicationYear = 1935,
Geolocation = "US",
Language = "en")

test_that("datacite() works", {
iris_datacite <- datacite(
Title = "Iris Dataset",
Creator = person(family="Anderson", given ="Edgar", role = "aut"),
Publisher = "American Iris Society",
PublicationYear = 1935,
Geolocation = "US",
Language = "en")
expect_true(is.datacite(iris_datacite))
expect_equal(iris_datacite$language, 'en')
expect_equal(iris_datacite$geolocation, 'US')
Expand Down
2 changes: 0 additions & 2 deletions tests/testthat/test-dublincore.R
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,6 @@ test_that("dublincore() works", {
expect_equal(dct_iris$description, "The famous (Fisher's or Anderson's) iris data set gives the measurements in centimeters of the variables sepal length and width and petal length and width, respectively, for 50 flowers from each of 3 species of iris. The species are Iris setosa, versicolor, and virginica.")
})

x = iris_dataset

test_that("as_dublincore() works", {
expect_true(is.dublincore(as_dublincore(iris_dataset)))
expect_true(is.list(as_dublincore(x=iris_dataset, type="list")))
Expand Down

0 comments on commit b2b8294

Please sign in to comment.