-
Notifications
You must be signed in to change notification settings - Fork 83
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
refactor(tests): simplify test code #363
Conversation
I see that #362 include some stuff that are in this PR. |
this PR depends on the other one, means the author has included that PR's commits in this one. just ignore it for now and wait for 362 to be merged |
Or we can merge this one as include more stuff. |
i rebased this pr, it's not related to another pr now, that may be more convenient |
@lxl66566 can you fix the conflicts? |
rebased |
I'd rather not. When changing some internal functionality - I want to see all the validity checks green before I check the stdlib.
Why keep the separate?
Do you agree with me? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that we shouldn't move validity
(the compiler validity) tests to the stdlib
(standard library) tests.
I got you. I think we can put the test logic in And then, put How do you think of that? |
Taking this opportunity. Why don't we start using insta? We wouldn't have create output txt files. We would just approve generated ones |
Right now with the latest changes there are just a couples of .txt files as we removed the majority. |
Can you align with the latest changes? |
master now in #300 didn't pass the test. |
A pr fixed that issue. |
Signed-off-by: lxl66566 <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bug detected
Co-authored-by: Phoenix Himself <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All good now
* refactor(tests): simplify test code Signed-off-by: lxl66566 <[email protected]> * Update src/tests/mod.rs Co-authored-by: Phoenix Himself <[email protected]> --------- Signed-off-by: lxl66566 <[email protected]> Co-authored-by: Daniele Scasciafratte <[email protected]> Co-authored-by: Phoenix Himself <[email protected]>
changes:
validity_test
andstdlib_test
logic into an inner functionscript_test
: the test logic are same, it's better not to use same code