-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Make emoji
and checkstyle
reporter to output report sorted by file name
#1430
Conversation
Generated by 🚫 danger |
String comparison result is different between mac and Linux ... 😞 $ TOOLCHAINS=org.swift.31120170327a swift
swift_oss_helper command enabled.
warning: (x86_64) /Library/Developer/Toolchains/swift-3.1-RELEASE.xctoolchain/System/Library/PrivateFrameworks/LLDB.framework/Resources/repl_swift empty dSYM file detected, dSYM was created with an executable with no debug info.
Welcome to Apple Swift version 3.1 (swift-3.1-RELEASE). Type :help for assistance.
1> "Other" < "filename"
$R0: Bool = true
2> $ docker run --privileged -it -v `pwd`:`pwd`:cached -w `pwd` --rm norionomura/sourcekit:31 swift
Welcome to Swift version 3.1 (swift-3.1-RELEASE). Type :help for assistance.
1> "Other" < "filename"
$R0: Bool = false
2> |
StringComparable.swift#L111-L112: public // @testable
func _compareString(_ rhs: String) -> Int {
#if _runtime(_ObjC)
// We only want to perform this optimization on objc runtimes. Elsewhere,
// we will make it follow the unicode collation algorithm even for ASCII.
if _core.isASCII && rhs._core.isASCII {
return _compareASCII(rhs)
}
#endif
return _compareDeterministicUnicodeCollation(rhs)
} When comparing ASCII character strings, there seems to be a difference depending on whether ObjC runtime is present:
I think that the value expected for our test results should be switched depending on whether ObjC runtime is present or not. |
emoji
and checkstyle
reporter to output report sorted by file nameemoji
and checkstyle
reporter to output report sorted by file name
emoji
and checkstyle
reporter to output report sorted by file nameemoji
and checkstyle
reporter to output report sorted by file name
Updated. |
Codecov Report
@@ Coverage Diff @@
## master #1430 +/- ##
==========================================
+ Coverage 81.13% 81.14% +0.01%
==========================================
Files 180 180
Lines 9184 9190 +6
==========================================
+ Hits 7451 7457 +6
Misses 1733 1733
Continue to review full report at Codecov.
|
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.
🎉
Also, way to fix this in Swift! 👏 |
Thanks! 🙏
Apparently, swiftlang/swift#8769 seems to be incompatible with the String Manifesto. |
Fixes #1429