Skip to content

Add yacht #156

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
May 9, 2025
Merged

Add yacht #156

merged 4 commits into from
May 9, 2025

Conversation

keiravillekode
Copy link
Contributor

No description provided.

@keiravillekode keiravillekode force-pushed the yacht branch 3 times, most recently from 8f03d55 to 1fc8c63 Compare May 5, 2025 07:59
FUNC_PROTO = """\
#include "vendor/unity.h"

#include <stdint.h>
Copy link
Contributor

Choose a reason for hiding this comment

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

This is unused.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It is for uint16_t

"""

def array_literal(digits):
return str(digits).replace('[', '{').replace(']', '}')
Copy link
Contributor

Choose a reason for hiding this comment

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

I would find this cleaner:

Suggested change
return str(digits).replace('[', '{').replace(']', '}')
return '{' + ', '.join(str(d) for d in digits) + '}'

@keiravillekode keiravillekode merged commit ef0c9df into exercism:main May 9, 2025
4 checks passed
@keiravillekode keiravillekode deleted the yacht branch May 9, 2025 04:02
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.

2 participants