-
Notifications
You must be signed in to change notification settings - Fork 41
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
Quote testing: remove quoteOutputMatches when there isn't any difference to check #316
Comments
Can we do this with property based testing? |
Thanks for the feedback @nomisRev! I've updated the description. |
And it seems property-based testing is an upcoming feature. Until then, I think we could improve these tests. Some errors were just detected when evaluating expressions on the bytecode. |
@rachelcarmena are there specific examples with the error messages and where it's failing? I'm sorry, this is vague for me. |
Or course! I'm talking about execution errors instead of compilation errors. Compilation can be OK and then the execution can raise an error. If we add the check of execution with expression evaluation, the test will be more robust 👍 |
ahhh yeah thanks so much Raquel - I still have more base ones to add for the rest of today, but perhaps I can open a PR with to experiment with some of these ideas tomorrow or Thursday so we can create a good standard for more robust testing for the quote-and-template system! 😄 |
@nomisRev yes these are the laws I have been talking to @ahinchman1 we will build once all the elements are there. A Gen and a law set for scopes. The first law is the empty identity for the destructuring template producing no effect when an element is replaced by it. This ensures all templates as quoted are non-destructive |
Thanks @raulraja , let's close the issue because of the upcoming features! |
When there are no differences between the source code and the quote output, the test isn't providing any value with
quoteOutputMatches
:I think it could be better with these alternatives:
compiles
.The text was updated successfully, but these errors were encountered: