Skip to content

Sync problem specs #273

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

Merged
merged 4 commits into from
Jul 13, 2025
Merged

Sync problem specs #273

merged 4 commits into from
Jul 13, 2025

Conversation

BNAndras
Copy link
Member

@BNAndras BNAndras commented Jun 6, 2025

No description provided.

@BNAndras BNAndras added x:action/sync Sync content with its latest version x:rep/tiny Tiny amount of reputation labels Jun 6, 2025
Copy link

github-actions bot commented Jun 6, 2025

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!

@BNAndras BNAndras force-pushed the sync-problem-specs branch from 4e0eab7 to 4624d7e Compare June 6, 2025 02:29
! Test 21: multiple line question
call assert_equal("Whatever.", hey(""// &
& "Does this cryogenic chamber make me look fat?"// &
& "No."), "multiple line question")
& "Does this cryogenic chamber make me look fat?"), "multiple line question")
Copy link
Member

Choose a reason for hiding this comment

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

Isn't there supposed to be a newline in here?

Copy link
Member Author

Choose a reason for hiding this comment

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

The change is dropping the No part so it’s a single sentence with a newline at the beginning. So that newline should still be there at the beginning.

Copy link
Member

Choose a reason for hiding this comment

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

https://github.com/exercism/problem-specifications/blob/main/exercises/bob/canonical-data.json#L236C10-L236C70

      "input": {
        "heyBob": "\nDoes this cryogenic chamber make\n me look fat?"
      },

The spec has two newlines.

Copy link
Member Author

Choose a reason for hiding this comment

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

I updated the test suite with named constants to better represent the alternate whitespace characters. Enabling test 24 required the example solution be updated since trim_len() only accounts for trailing blank spaces. The Linux CI is passing once I fixed the expected value for test 21, but the macOS 12 one is having some trouble finding the GFortran compiler.

@BNAndras BNAndras force-pushed the sync-problem-specs branch from 41f6be9 to 9fef4a0 Compare July 11, 2025 21:27
@BNAndras BNAndras merged commit 689a41f into exercism:main Jul 13, 2025
4 checks passed
@BNAndras BNAndras deleted the sync-problem-specs branch July 13, 2025 00:07
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:rep/tiny Tiny amount of reputation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants