Add complex-numbers exercise - #1053
Conversation
|
+cc @exercism/php |
|
@IsaacG It's on the radar, but time is scarce... |
720ece8 to
9511a08
Compare
|
About CI:
|
|
Re: i18n, see exercism/problem-specifications#2686 TL;DR: finalize the PR and get approval first. Once it's ready to merge, a label is used to trigger the translation, which should do a bunch of i18n work and clear the CI. |
There was a problem hiding this comment.
Everything looks good except for the interface we are proposing to the student. Let's align this with other tracks and it is good to go in my opinion.
Thanks @resu-xuniL
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
|
This PR has been translated 🚀 |
|
Merged, thanks @resu-xuniL @IsaacG and @mk-mxp for all your relevant inputs. Note that I'm rather impressed on how fast the translation went, the French translation looks okay to me exercism/i18n@78e4ebe. |
Hello!
Here is
complex-numbersexercise for validation:configlet createtestandexamplefiles6config.jsonIs difficulty rank 6 OK?
I'm not really pleased with the 8 last tests:
I had to create the
addRsubRmulRdivRmethods to manage arealnumber.I looked how the javascript track managed it: they are passing the
real numberas acomplex number(so they can use only 4 methods, one for each arithmetic operation)Should we do the same thing? i.e. get rid of the 4 methods I created (the ones finishing with a capital
R) and keeping only the 4 methodsaddsubmuldivsuch as in the Javascript track ?This would gives:
What do you think ?