question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Port run-length-encoding exercise from JavaScript track

See original GitHub issue

As part of the job to make the track compatible with Nextercism, we identified there are missing exercises in this track that are present in the JavaScript track. One of them is run-length-encoding.

The task would be to add the run-length-encoding 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/run-length-encoding (https://github.com/exercism/javascript) to <ecmascript repo>/exercises/run-length-encoding (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/run-length-encoding folder
  3. Adapt the code in run-length-encoding.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. 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.
  5. 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 run-length-encoding. 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.

@exercism/ecmascripts - Do you miss something here?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:13 (13 by maintainers)

github_iconTop GitHub Comments

1reaction
matthewmorgancommented, Aug 3, 2017

@rchavarria as I mentioned in the JS track, we also need to change the test suite methods to use Jest here instead of Jasmine, so it becomes test and xit becomes xtest.

Thanks for doing this!

0reactions
rchavarriacommented, Sep 13, 2017

Yep, it’s true. Thanks for helping on keeping issue list clean 👍

Closed by #335

Read more comments on GitHub >

github_iconTop Results From Across the Web

Community solutions for Run-Length Encoding in ... - Exercism
Explore other people's solutions to Run-Length Encoding in JavaScript, and learn how others have solved the exercise.
Read more >
Run-Length Encoding with JavaScript | by Cosmocoder
Run -length encoding (RLE) is a form of lossless data compression in which runs of data (sequences in which the same data value...
Read more >
Different Servers in Node.js - GeeksforGeeks
port <Number>: Ports are in the range 1024 to 65535 containing both registered and Dynamic ... Run index.js file using following command:
Read more >
Errors | Node.js v19.3.0 Documentation
Error objects capture a "stack trace" detailing the point in the code at which the Error was instantiated, and may provide a text...
Read more >
Express/Node introduction - Learn web development | MDN
Set common web application settings like the port to use for ... a text file called app.js and run it in a bash...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found