Skip to content

Port nucleotide-count exercise from JavaScript track #361

@tejasbubane

Description

@tejasbubane

The task would be to add the nucleotide-count exercise to this track, copying files from the JavaScript track and adapting the code to the ECMAScript 6 standard.

Basic steps would include:

  1. Copy all files from <javascript repo>/exercises/nucleotide-count (https://github.com/exercism/javascript) to <ecmascript repo>/exercises/nucleotide-count (https://github.com/exercism/ecmascript)
  2. Copy the main package.json file (it's in the root folder of the ecmascript repo https://github.com/exercism/ecmascript/blob/master/package.json) to the <ecmascript repo>/exercises/nucleotide-count folder
  3. Adapt the code in nucleotide-count.spec.js file to use ECMAScript 6 features (import modules, arrow functions, const and/or let, any other feature you think will make the code better). Additionally, the JavaScript track uses Jasmine where the ECMAScript track uses Jest. So, it and xit must be translated to test and xtest. Feel free to adapt example.js as well, just for fun (as long as tests pass)
  4. We have a standard set of test cases that the problem should cover in all languages on exercism in the common problem specifications repo. Check if all test-cases from here are covered. If there are any cases missing or additional cases, please comment in the PR regarding them.
  5. In the README.md of the exercise, replace sections from Setup and below (Setup, Making the test suite pass, Source and Submitting incomplete solutions) with similar sections from any ECMAScript exercise, for example accumulate README. They'll include Setup, Requirements, Making the test suite pass, Source and Submitting incomplete solutions.
  6. Copy some exercise information from JavaScript config.json file to the ECMAScript config.json file. This information is an object in the exercises array property with a slug property equals to nucleotide-count. Copy that object and place it in the same (or most similar) position in the ECMAScript config.json file. Both config.json files are in the root folder of the repo.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions