-
-
Notifications
You must be signed in to change notification settings - Fork 161
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
largest-series-product: Sync tests #770
base: main
Are you sure you want to change the base?
Conversation
This PR touches files which potentially affect the outcome of the tests of an exercise. This will cause all students' solutions to affected exercises to be re-tested. If this PR does not affect the result of the test (or, for example, adds an edge case that is not worth rerunning all tests for), please add the following to the merge-commit message which will stops student's tests from re-running. Please copy-paste to avoid typos.
For more information, refer to the documentation. If you are unsure whether to add the message or not, please ping |
99e6ee3
to
49ac011
Compare
I've checked the built-in exceptions and I don't think there is a better exception. |
Ok, it's ready for review then. |
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.
Looks good! I hope the templating wasn't that much of a hassle.
I'm mostly copying and pasting while editing older templates. However, I'm not comfortable with generator.clj files, as I'm still confused about their inner workings. Everything moves faster than I'm able to keep up with. |
To be fair, that's also what I do :)
They're sort of like optional plug-in points, where if the file exists and it defines a
Sorry about that! I quite used to moving very fast, having been part of the Exercism team for 5 years and having been a (mostly autonomous) maintainer for the C#/F#/Prolog tracks. |
I think i've gotten the general idea, i'm just unsure how to use it. It's probably going to be simple once i get the details. The docs have two functions, with very similar names, one updates a test case, and the other adds/removes? I've also looked at the source code, but this did not help much either. At this point I'm not even sure if there's any kind of error hidden in either the docs or the code.
That's ok. I aware that i can't possibly match the expertise of most maintainers. I'm just slow :) |
Taking a stab at this. One thing that concerns me a bit is the type of Exception thrown. Right now all of them are marked as IllegalArgument, but perhaps not all of them should. In particular, a span that has length 5 and a string "123" will throw Exception even both of them are valid as individual arguments. It's just the combination that isn't valid.
@ErikSchierboom Any ideas?