-
-
Notifications
You must be signed in to change notification settings - Fork 152
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
Complex numbers: Sync tests with problem-specifications #567
Conversation
Hello. Thanks for opening a PR on Exercism. We are currently in a phase of our journey where we have paused community contributions to allow us to take a breather and redesign our community model. You can learn more in this blog post. As such, all issues and PRs in this repository are being automatically closed. That doesn't mean we're not interested in your ideas, or that if you're stuck on something we don't want to help. The best place to discuss things is with our community on the Exercism Community Forum. You can use this link to copy this into a new topic there. Note: If this PR has been pre-approved, please link back to this PR on the forum thread and a maintainer or staff member will reopen it. |
For some reason it's not giving me the option to reopen this... weird |
Oh, now it is :) |
I still find it odd that the expected/actual results depend on the order in the |
Don't do anything yet with this PR. I need to check few things. |
2b97834
to
a63c1c2
Compare
Ok, so i had a suspicion that the order of actual expected is nothing more than a convention. The Clojure api here shows an example with expected being the initial form and actual being the computed result. Re-writing The confusion about the convention arises when we realize that not every test tool behaves like this. Cursive, for example, reports something completely different.
So not only it evaluates the initial form, but now the order makes a difference. It treats the first argument of How do i know this? I just asked the Cursive author here. So I'll leave the order as it is in this PR and hopefully some day he fixes Cursive. |
This one is finished. Tested with random community solutions and i've found one that fails due to floating point inaccuracies. The good news is that the next PR, which is ready, will resolve those issues. |
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.
Cool, thanks!
Partially addresses #520
Tests are now in sync, missing tests have been implemented, order of the actual and expected results has been fixed.
I'll try to address the issue with the floats in a subsequent PR since this one is changes a lot of things.
This PR is not expected to break existing solutions