-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Make more String tests run on Linux #1131
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
Conversation
@swift-ci Please test |
Documenting a few failed test cases along the way
a58c11b
to
8e8ce7a
Compare
I don't know what made the CI tests fail, but I had left a |
@swift-ci Please test |
1 similar comment
@swift-ci Please test |
The non-Linux failures don't seem directly related to this PR; should another test be run? |
@swift-ci Please test |
Make more String tests run on Linux.
checkComparable(expected, lhs, rhs, stackTrace: stackTrace.withCurrentLoc()) | ||
} | ||
|
||
for test in comparisonTests { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why did you move the loop out of the test? Doesn't the test provide the reference to the test data when it fails?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, I see -- you added custom XFAILs. Never mind.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought this would be better than duplicating the tests just for xfail cases.
Thanks for reviewing.
@glessard Thank you for this! |
This PR moves a number of String-related tests from
test/1_stdlib/NSStringAPI.swift
, where they couldn't run because the file requiresobjc_interop
.A few test cases have new xfail annotations, related to sort order (https://bugs.swift.org/browse/SR-530) and comparisons involving embedded nulls (https://bugs.swift.org/browse/SR-630).