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

[gardening] Don't compare with false #3291

Merged
merged 1 commit into from
Jul 1, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions validation-test/stdlib/Prototypes/PersistentVector.swift.gyb
Original file line number Diff line number Diff line change
Expand Up @@ -490,8 +490,8 @@ struct _PVSparseVectorNodePointer<Key : Hashable, Value>
layout: _PVSparseVectorNodeLayoutParameters
) {
precondition(i >= keyCount && i < 32) // sanity check
precondition(childNodePopulationBitmap[i] == false) // sanity check
precondition(keyPopulationBitmap[i] == false) // sanity check
precondition(!childNodePopulationBitmap[i]) // sanity check
precondition(!keyPopulationBitmap[i]) // sanity check

(_keyVector(layout: layout) + keyCount).initialize(with: key)
(_valueVector(layout: layout) + keyCount).initialize(with: value)
Expand Down Expand Up @@ -1135,8 +1135,8 @@ struct _PVArrayNodePointer<Key : Hashable, Value>
value: Value
) {
precondition(i >= 0 && i < 32) // sanity check
precondition(childNodePopulationBitmap[i] == false) // sanity check
precondition(keyPopulationBitmap[i] == false) // sanity check
precondition(!childNodePopulationBitmap[i]) // sanity check
precondition(!keyPopulationBitmap[i]) // sanity check

UnsafeMutablePointer<Key>(
_childNodeOrKeyArray + _Self._childNodeOrKeyStride * i)
Expand Down Expand Up @@ -1664,7 +1664,7 @@ struct _PVAnyNodePointer<Key : Hashable, Value>
case 2:
return Mirror(reflecting: asCollisionNode)
default:
return Mirror(self, children: [ "unknown tag" : tag ])
return Mirror(self, children: ["unknown tag": tag])
}
}
}
Expand Down Expand Up @@ -1896,7 +1896,7 @@ PersistentVectorTests.test("sizeof") {
}

%{
TRACE = '''_ message: @autoclosure ()->String = "",
TRACE = '''_ message: @autoclosure () -> String = "",
showFrame: Bool = true,
stackTrace: SourceLocStack = SourceLocStack(),
file: String = #file, line: UInt = #line'''
Expand Down