Skip to content

Clean up the testUniformTypeIdentifiers unit test #6735

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 1 commit into from
Jul 20, 2023
Merged

Clean up the testUniformTypeIdentifiers unit test #6735

merged 1 commit into from
Jul 20, 2023

Conversation

ian-twilightcoder
Copy link
Contributor

testUniformTypeIdentifiers can skip the Array -> String conversion for confstring and use String directly.

Motivation:

I didn't see the string version of unsafeUninitializedCapacity: when I first wrote the unit test.

Modifications:

Use String.init(unsafeUninitializedCapacity:initializingUTF8With:) to skip the Array -> String conversion.

Result:

testUniformTypeIdentifiers will be a little cleaner.

Use String.init(unsafeUninitializedCapacity:initializingUTF8With:) to skip the Array -> String conversion.
@ian-twilightcoder
Copy link
Contributor Author

@swift-ci smoke test

@ian-twilightcoder
Copy link
Contributor Author

@swift-ci smoke test windows

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