-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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 a test suite #3451
Comments
assert_eq is already here (assert) assert_panics I agree with. |
this will be fixed soon |
I just figured something like this would require an |
Yes, this will be compiler magic :) Assert is a builtin keyword. |
I figured as much. Any reason to not keep assert but also have a test suite built on top of it that's a little more flexible and easy to modify? Compiler internals are a little harder to contribute to, especially for newcommers. |
This feature request is a duplicate of #9. |
Currently we have access to one "test method" as far as I can tell, and that's
assert
. It's nice to have, but there's only so much you can do with it. It would be nice to have a more fully featured test suite built in so that we could do things like:This would be extremely helpful, especially when it comes to debugging tests since currently
assert
doesn't actually tell you what the value was that made the assertion failed. It just panics and tells you the line.The text was updated successfully, but these errors were encountered: