exercism / x86-64-assembly

Exercism exercises in x86-64 Assembly.
https://exercism.org/tracks/x86-64-assembly
MIT License
22 stars 18 forks source link

Add run-length-encoding exercise #220

Closed keiravillekode closed 2 months ago

keiravillekode commented 2 months ago

The only thing I thought might be missing is the test generator for this exercise in generators/exercises.

The generator outputs two methods

void test_empty_string(void) {
...
}

void test_empty_string(void) {
...
}

For this exercise, we might want to change the generator to include property in the test function name, e.g. test_encode_empty_string

In general, we might need to include the full description chain, e.g. test_runlength_encode_a_string__empty_string

I'm not sure how much value there is in making the generator more general - it is fairly trivial to update tests when needed.