Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Add the match_reference function, and then refactor test_reference to call match_reference under the hood #112

Draft
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

DilumAluthge
Copy link
Member

No description provided.

Copy link
Member

@johnnychen94 johnnychen94 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks quite good to me already.

We can also move the docstring from test_reference to match_reference and then export this function as the recommended interface. Meanwhile, the @test_reference macro can still be kept as a legacy usage (no need to deprecate IMO).

The side-effect in match_reference that generates the reference file when it doesn't exist might cause some confusion; might need to add a keyword gen_reference=true to make it an opt-out feature. What do you think?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants