Please review: Implemented exercise nucleotide-count#349
Please review: Implemented exercise nucleotide-count#349Vankog wants to merge 1 commit intoexercism:masterfrom
Conversation
|
Well it seems I'm done. Please review! |
| @@ -1,1052 +1,1065 @@ | |||
| { | |||
There was a problem hiding this comment.
Ran the configlet fmt as described in the documentation:
https://github.com/exercism/docs/blob/master/you-can-help/implement-an-exercise-from-specification.md#configuring-the-exercise
It seems the configlet wasn't run in quite a time. Or the formatter changed drastically... don't know right now.
edit: oh it seems the fmt part is new for 12 days... so no wonder why it was never run.
There was a problem hiding this comment.
Hmm. The configlet does many changes to this file, and they seem out of the scope of this MR.
We should handle configlet changes in a new PR (it'll perfectly fine if you run it and create that PR).
So, I'd leave this file untouched, just modifications related to nucleotide-count. You can do those changes compatible with the new configlet. It'll be ok. But, I wouldn't change the rest of exercises configuration in the PR.
What do you think?
There was a problem hiding this comment.
Yeah, actually I did so in the JS track with a separate PR that got merged just recently. But this epiphany struck me too late for thes ecma track. ;-)
I'll split it.
| ], | ||
| "uuid": "62d60b42-93bc-4de9-90d1-1ca18a847812" | ||
| }, | ||
| { |
There was a problem hiding this comment.
I put it here, because it is related to the rna-transcriptor. That's why I let it unlock with that exercise.
The uuid I generated with https://www.uuidgenerator.net
| @@ -0,0 +1,69 @@ | |||
| { | |||
There was a problem hiding this comment.
I updated and customized the package.json
There was a problem hiding this comment.
package.json is kept in sync with the one in the root folder. All exercises have the same package.json. If this is different, well lose your customizations. Is there anything special (different from the main one) you need?
There was a problem hiding this comment.
I see, in that case I'll revert it. It just includes some new versions and a customized description and authoring.
| expect(new Dna(strand).count('Z')).toEqual(0); | ||
| // special-character-nucleotides | ||
| expect(new Dna(strand).count('Ä')).toEqual(0); | ||
| expect(new Dna(strand).count('×')).toEqual(0); |
There was a problem hiding this comment.
inserting a Unicode character by design.
.... and for the lols...
| @@ -1,35 +1,35 @@ | |||
| { | |||
There was a problem hiding this comment.
formatted by configlet fmt.
Same reasoning as above.
edit: oh it seems the fmt part is new for 12 days... so no wonder why it was never run.
There was a problem hiding this comment.
It could be included in the new PR with configlet changes.
b2d920a to
e9e9679
Compare
rchavarria
left a comment
There was a problem hiding this comment.
I agree with @tejasbubane. Could you make tests fit the canonical ones?
Anyway, it's fine if you want to add more tests than the provided in the canonical ones. But they should be related to the uniqueness of JavaScript as a language.
On the other hand, I find the use of the 💩 really fun. I'd keep a expect or a test for that 😆
| @@ -1,1052 +1,1065 @@ | |||
| { | |||
There was a problem hiding this comment.
Hmm. The configlet does many changes to this file, and they seem out of the scope of this MR.
We should handle configlet changes in a new PR (it'll perfectly fine if you run it and create that PR).
So, I'd leave this file untouched, just modifications related to nucleotide-count. You can do those changes compatible with the new configlet. It'll be ok. But, I wouldn't change the rest of exercises configuration in the PR.
What do you think?
| @@ -1,35 +1,35 @@ | |||
| { | |||
There was a problem hiding this comment.
It could be included in the new PR with configlet changes.
| @@ -0,0 +1,69 @@ | |||
| { | |||
There was a problem hiding this comment.
package.json is kept in sync with the one in the root folder. All exercises have the same package.json. If this is different, well lose your customizations. Is there anything special (different from the main one) you need?
|
Alright, thanks for your feedback. Added some replies to the reviews. About the tests: In the JS track I just got the same advice about the canonical versions. |
Yes, even I felt the same while looking at the tests for this exercise. Please open a discussion there. |
ce53ae3 to
0ad06ed
Compare
| ], | ||
| "unlocked_by": "rna-transcription", | ||
| "uuid": "9debee8e-003d-4eb2-bf97-6d3764d024ca" | ||
| }, |
There was a problem hiding this comment.
I put it here, because it is related to the rna-transcriptor. That's why I let it unlock with that exercise.
The uuid I generated with https://www.uuidgenerator.net
|
OK, reverted the configlet formatting for this PR and removed the package.json. I also created a discussion PR for the canonical test: |
d3d5218 to
8ecd75f
Compare
8ecd75f to
b8c2289
Compare
|
I know this PR is on hold, but something I just noticed and commenting so it does not miss out later. |
|
@Vankog what is the status of this PR? It looks like your PR to problem-specifications has been closed? Should we close this too, or are you intending to finish it? Thanks! |
|
no its just closed, because it was splitted. see exercism/problem-specifications#895 (comment) However, until next year I am not able to work on this. Hot phase for my masters thesis... ;-) I intend to return to these issues. |
|
OK, we're going to close this PR for now. Thanks for the update. |
WIP
edit: done(?)