Skip to content

Conversation

@mohamad-shoumar
Copy link

Added a check where position of X is not at last position

Added a check where position of X is not at last position
@github-actions
Copy link
Contributor

Hello. Thanks for opening a PR on Exercism 🙂

We ask that all changes to Exercism are discussed on our Community Forum before being opened on GitHub. To enforce this, we automatically close all PRs that are submitted. That doesn't mean your PR is rejected but that we want the initial discussion about it to happen on our forum where a wide range of key contributors across the Exercism ecosystem can weigh in.

You can use this link to copy this into a new topic on the forum. If we decide the PR is appropriate, we'll reopen it and continue with it, so please don't delete your local branch.

If you're interested in learning more about this auto-responder, please read this blog post.


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.

@github-actions github-actions bot closed this Dec 21, 2023
@IsaacG
Copy link
Member

IsaacG commented Dec 21, 2023

See existing test 28025280-2c39-4092-9719-f3234b89c627

@MatthijsBlom
Copy link
Contributor

MatthijsBlom commented Dec 21, 2023

Test 28025280-2c39-4092-9719-f3234b89c627 proved insufficient to catch the solution that inspired this test.

Presently there is no test about candidate codes containing both a valid and an invalid X. The test case proposed here does cover this case, but I'm not sure it is the best one. When I presented it to Mohamad I did not plan on it being included among the canonical test cases.

@IsaacG
Copy link
Member

IsaacG commented Dec 21, 2023

Should we move the discussion to the forum? Changes should be discussed there prior to opening PRs.

@MatthijsBlom
Copy link
Contributor

I was not planning on championing this proposal, and will not participate in a forum discussion, sorry.

I'm just dropping by here to clear up a confusion that landed in my GH notifications feed.

The only thing I might otherwise have wanted to add in the future: a better test case would be, I think, a random candidate number ending in X that is valid, except that it also contains an X in another place (making it invalid). The randomness would be there to signal that nothing special is going on, other than the Xs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants