-
Notifications
You must be signed in to change notification settings - Fork 184
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
Part2 solutions (code only) #8
base: master
Are you sure you want to change the base?
Conversation
Hi @chopmo, I think that we can discuss more if you'd like once I post my solution, but generally this looks great! A couple minor concerns:
Great work all around, hope those comments help. |
Thanks for your comments @sandal! ad 1) Yes, leaving out the validations was too sloppy. These checks are obviously candidates for further unit testing, but I simply added the checks for now. |
The |
For instance: > "駧".encode(Encoding::ISO8859_1).force_encoding(Encoding::UTF_8).valid_encoding?
=> true
> "駧".encode(Encoding::ISO8859_1).force_encoding(Encoding::UTF_8)
=> "駧" |
No description provided.