-
Notifications
You must be signed in to change notification settings - Fork 48
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
One OrderedSet
test fails
#124
Comments
I've just done more testing: I changed the failing test to this, to check if it failed in the same way for all it("should preserve the order of the given input") {
let input = ["a", "c", "b", "a"]
expect(Set(input).joined()) != "acb"
expect(Set(input).joined()) != "acb"
expect(Set(input).joined()) != "acb"
expect(Set(input).joined()) != "acb"
expect(Set(input).joined()) != "acb"
expect(Set(input).joined()) != "acb"
expect(Set(input).joined()) != "acb"
expect(Set(input).joined()) != "acb"
expect(Set(input).joined()) != "acb"
expect(Set(input).joined()) != "acb"
expect(OrderedSet(input).joined()) == "acb"
} Then I ran
This shows that the test isn't deterministic. Since I dunno what can be done about this test. The |
Thanks for filling the issue! Your explanation totally makes sense, so let's remove the test. |
No problem ;) |
OS: Linux, Ubuntu 16.04
Commands ran:
Failed test output:
What's the output on that line under Mac OS? Maybe it's failing on both ends.
The text was updated successfully, but these errors were encountered: