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

Make String#center spec-compliant #518

Merged
merged 3 commits into from
Mar 1, 2022
Merged

Make String#center spec-compliant #518

merged 3 commits into from
Mar 1, 2022

Conversation

ryangjchandler
Copy link
Contributor

@ryangjchandler ryangjchandler commented Feb 28, 2022

Feels like the code for this could be squashed a little - feels quite verbose... maybe it's okay since there's a little bit of math required to calculate the correct padding.

Related to #217.

@ryangjchandler ryangjchandler changed the title Add String#center spec Make String#center spec-complian Feb 28, 2022
@ryangjchandler ryangjchandler changed the title Make String#center spec-complian Make String#center spec-compliant Feb 28, 2022
@seven1m seven1m merged commit c87ab28 into natalie-lang:master Mar 1, 2022
@ryangjchandler
Copy link
Contributor Author

Ah, to_int() exists now. Nice!

@ryangjchandler ryangjchandler deleted the feature/String#center branch March 1, 2022 13: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