Scale Generator exercise in Kotlin track has wrong test cases

There are 17 cases, 2 are correct, and 15 are wrong

Please refer to JS track’s Scale Generator and correct the test cases accordingly.

Given length n of input, interval() should return length (n + 1) of output

All the test cases expects length n

The scale generator exercise is deprecated and has been removed/marked inactivefrom most tracks.

including JavaScript. If @SleeplessByte decides the exercise shouldn’t be deprecated for Kotlin, I was able to confirm that the track’s tests diverge on expected values from problem-specifications tests. Changing the expected values would break 258 completions to date.

Whilst I personally like the idea of this exercise, I think we should follow suit and deprecate it from Kotlin. Anyone up for PRring it?

Happy to do so. I’m not entirely sure why it didn’t get collected with the other PRs to deprecate this.

1 Like

Thanks. Found your previous PR and that was the reason this wasn’t dealt with.

Thanks for raising this @backdevjung.

Merged!

The tests are sad since they use an older Ubuntu LTS version.

Would you like a PR to bump that?

That was already fixed!

1 Like