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

Tests: prefer to use first rather than indexing #6502

Merged
merged 1 commit into from May 1, 2023

Conversation

compnerd
Copy link
Collaborator

In the case of a failure in the test, we would previously continue to perform the slice operation which will fail in the case of an Asserts runtime due to an out of bounds access. The use of first? here would unwrap or fail, allowing tests to continue execution.

In the case of a failure in the test, we would previously continue to
perform the slice operation which will fail in the case of an Asserts
runtime due to an out of bounds access.  The use of `first?` here would
unwrap or fail, allowing tests to continue execution.
@compnerd
Copy link
Collaborator Author

@swift-ci please smoke test

@compnerd
Copy link
Collaborator Author

Not sure about the windows failure here:

CMake Error: The source "C:/Users/swift-ci/jenkins/workspace/swiftpm-PR-windows/swift-asn1/CMakeLists.txt" does not match the source "C:/Users/swift-ci/jenkins/workspace/swiftpm-PR-windows/swiftpm/CMakeLists.txt" used to generate cache.  Re-run cmake with a different source directory.

@compnerd
Copy link
Collaborator Author

@swift-ci please test Windows platform

@compnerd compnerd merged commit 62633ac into apple:main May 1, 2023
5 checks passed
@compnerd compnerd deleted the plugin-unwrapped branch May 1, 2023 05:04
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.

None yet

2 participants