Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sync etl #868

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

sync etl #868

wants to merge 1 commit into from

Conversation

tomasnorre
Copy link
Contributor

Resolves #854

Copy link

This PR touches files which potentially affect the outcome of the tests of an exercise. This will cause all students' solutions to affected exercises to be re-tested.

If this PR does not affect the result of the test (or, for example, adds an edge case that is not worth rerunning all tests for), please add the following to the merge-commit message which will stops student's tests from re-running. Please copy-paste to avoid typos.

[no important files changed]

For more information, refer to the documentation. If you are unsure whether to add the message or not, please ping @exercism/maintainers-admin in a comment. Thank you!

@tomasnorre tomasnorre self-assigned this Nov 19, 2024
@tomasnorre tomasnorre added x:action/sync Sync content with its latest version x:knowledge/elementary Little Exercism knowledge required x:module/practice-exercise Work on Practice Exercises x:type/content Work on content (e.g. exercises, concepts) x:size/small Small amount of work x:rep/small Small amount of reputation labels Nov 19, 2024
/**
* uuid 60dbd000-451d-44c7-bdbb-97c73ac1f497
* @testdox single score with multiple letters
*/
public function testTransformMoreValues(): void
{
$old = ['1' => str_split('AEIOU')];
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please replace all the str_split() runtime created arrays with literal arrays like we have in canonical data. Also canonical data asks for integer keys into the array, so make all the keys integers:

Suggested change
$old = ['1' => str_split('AEIOU')];
$old = [1 => ["A", "E", "I", "O", "U"]];

This shows the actual input to the students and is as requested by canonical data. It also should not break any existing solutions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
x:action/sync Sync content with its latest version x:knowledge/elementary Little Exercism knowledge required x:module/practice-exercise Work on Practice Exercises x:rep/small Small amount of reputation x:size/small Small amount of work x:type/content Work on content (e.g. exercises, concepts)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Sync etl
2 participants