-
-
Notifications
You must be signed in to change notification settings - Fork 67
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
Add expectDocCommentIncludes
assertion
#155
Conversation
It doesn't really make sense to me that it's matching the whole doc comment. That would make the assertion huge. I think something like |
I agree, I wanted to see what your thoughts were before making the match non-exact. I went with |
expectDocComment
assertionexpectDocCommentIncludes
assertion
d135e23
to
dbcbb8e
Compare
dbcbb8e
to
4334ce9
Compare
Can you fix the merge conflict? |
Merged. |
9a5d505
to
aaad782
Compare
Adds an assertion to check the documentation comment of a given expression:
Fails if the type parameter does not exist, is not a string literal, or does not match the given expression's doc comment.
In one project, I have a function that takes a set of user-defined extension functions and maps them onto the built-ins.
expectDocComment
can help ensure that the type hinting for the user-defined extensions are mapped correctly.