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

Cannot round-trip to string with a dyn uti #5

Closed
psexton opened this issue Dec 14, 2016 · 0 comments
Closed

Cannot round-trip to string with a dyn uti #5

psexton opened this issue Dec 14, 2016 · 0 comments
Assignees

Comments

@psexton
Copy link
Owner

psexton commented Dec 14, 2016

For any Uti object returned by UtiBuilder, calling Uti#toString followed by UtiBuilder#fromString should return a Uti object equal to the original. This is not the case for a dyn.* Uti, as evidenced by this failing test:

String unknownSuffix = "foobar";
UtiBuilder instance = new UtiBuilder();
Uti orig = instance.fromSuffix(unknownSuffix);
Uti copy = instance.fromString(orig.toString());

copy will be null.

@psexton psexton self-assigned this Dec 14, 2016
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

No branches or pull requests

1 participant