Skip to content

Conversation

@Sencudra
Copy link
Contributor

First try to add practise exercise from list.

@github-actions
Copy link
Contributor

Hello 👋 Thanks for your PR.

This repo does not currently have dedicated maintainers. Our cross-track maintainers team will attempt to review and merge your PR, but it will likely take longer for your PR to be reviewed.

If you enjoy contributing to Exercism and have a track-record of doing so successfully, you might like to become an Exercism maintainer for this track.

Please feel free to ask any questions, or chat to us about anything to do with this PR or the reviewing process on the Exercism forum.

(cc @exercism/cross-track-maintainers)

@Sencudra
Copy link
Contributor Author

Any clues why ./bin/test_generator.sh could fail in CI and run okay locally?

@IsaacG
Copy link
Member

IsaacG commented Jun 23, 2025

The failing test shows,

Comparing ./exercises/practice/resistor-color/Tests/ResistorColorTests/ResistorColorTests.swift with /var/folders/x7/ch5v91h56_zbvbd1y2f600dm0000gn/T/tmp.n9hUCt7X2y/resistor-color/Tests/ResistorColorTests/ResistorColorTests.swift
28c28,30
<       ResistorColor.colors == [black, brown, red, orange, yellow, green, blue, violet, grey, white])
---
>       ResistorColor.colors == [
>         "black", "brown", "red", "orange", "yellow", "green", "blue", "violet", "grey", "white",
>       ])

@meatball133
Copy link
Member

The template library behind the generator actually behaves differently on Mac and Linux (yes this is very stupid). I find the system to be the harshes on macOS, so the testing happens in macOS. Since what I have find is that if it works on macOS it also works in Linux but not the other way around. The issues is mostly around arrays. To not make it as simple as possible is there are several functions in the plugins file that transform arrays into strings. So what you are likely looking for in this case is: toStringArray.

@meatball133 meatball133 merged commit f2a53d8 into exercism:main Jun 24, 2025
9 of 13 checks passed
@Sencudra Sencudra deleted the add_resistor_color branch July 11, 2025 17:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants