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
[SR-4218] [String] Non-empty strings compare equal to empty strings #374
Comments
This is still broken on Swift 3.1 Release on Ubuntu 16.10 |
This is still broken in the Swift 4.0 DEV snapshot for Ubuntu 14.04 released on May 29, 2017. |
This doesn't appear to be related to the XCTest libraries; it's pure Swift stdlib: http://swift.sandbox.bluemix.net/#/repl/595bac27bc7c2268561f6f27 {{let empty = "" |
The equality call shells out to this code: {{ uiter_setUTF8(&LeftIterator, reinterpret_cast<const char *>(LeftString), LeftLength); uint32_t Diff = ucol_strcollIter(GetRootCollator(), I suspect what's happening is the control characters (<20) are being handled in a different way in the iterator, which is why the result is being discarded. Compare: print("" == "\u{19}") // true |
This is still broken in the current Swift 4.1 DEV snapshots. |
Has this been fixed? If so this should be closed. |
I no longer see this in 4.2. 🙂 |
Additional Detail from JIRA
md5: e2cfdb4ceda2c28163bf20fcffb6441d
Issue Description:
The following test succeeds on macOS, fails on Linux:
I believe it should succeed on all platforms.
I've seen this with the 3.0.2 release version on Ubuntu 16.04, the 3.1 snapshot from March 8 on Ubuntu 16.10, and the trunk snapshot from March 9 on Ubuntu 16.10.
The text was updated successfully, but these errors were encountered: