Port run-length-encoding exercise from JavaScript track
See original GitHub issueAs 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:
- 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) - Copy the main
package.json
file (it’s in the root folder of theecmascript
repo https://github.com/exercism/ecmascript/blob/master/package.json) to the<ecmascript repo>/exercises/run-length-encoding
folder - Adapt the code in
run-length-encoding.spec.js
file to use ECMAScript 6 features (import
modules, arrow functions,const
and/orlet
, any other feature you think will make the code better). Additionally, the JavaScript track uses Jasmine where the ECMAScript track uses Jest. So,it
andxit
must be translated totest
andxtest
. Feel free to adaptexample.js
as well, just for fun (as long as tests pass). - 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 exampleaccumulate
README. They’ll include Setup, Requirements, Making the test suite pass, Source and Submitting incomplete solutions. - Copy some exercise information from JavaScript
config.json
file to the ECMAScriptconfig.json
file. This information is an object in theexercises
array property with aslug
property equals torun-length-encoding
. Copy that object and place it in the same (or most similar) position in the ECMAScriptconfig.json
file. Bothconfig.json
files are in the root folder of the repo.
@exercism/ecmascripts - Do you miss something here?
Issue Analytics
- State:
- Created 6 years ago
- Comments:13 (13 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@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
becomestest
andxit
becomesxtest
.Thanks for doing this!
Yep, it’s true. Thanks for helping on keeping issue list clean 👍
Closed by #335