Skip to content

Improve tests #21

Open
Open
@antaldaniel

Description

@antaldaniel

Editor review:

Should the line

agent(x=test_df) <- c(p1,p2,p3)
be removed as it is not used in the test?

I don't understand why the iris object needs to be duplicated in lines like

iris_dataset_4 <- iris_dataset

expect_true(is.dataset_df might become a custom expectation and/or rely on expect_s3_class() instead. Same comment for expect_true(is.subject.

expect_true(is.list(as_datacite(iris_dataset, "list")))

should be

expect_type(as_datacite(iris_dataset, "list"), "list")
What is https://github.com/dataobservatory-eu/dataset/blob/master/tests/testthat/test-dataset_prov.bak?

When using expect_error() as in

expect_error(dataset_title(mtcars))
maybe add a pattern for the error message, just in case another error happens?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions