Skip to content
This repository has been archived by the owner on Jun 18, 2019. It is now read-only.

Commit

Permalink
Merge pull request #129 from garnett/simplify-test-helper
Browse files Browse the repository at this point in the history
Simplify  test helper
  • Loading branch information
JohnSundell authored Oct 10, 2016
2 parents be8442d + 2f9c2e1 commit 2b6b68a
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions Tests/UnboxTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -1800,13 +1800,7 @@ private class UnboxTestBaseMock: Unboxable {
func verifyArrayPropertyValue<T: Equatable>(value: [T]?, againstDictionaryValue dictionaryValue: Any?) -> Bool {
if let propertyValue = value {
if let dictionaryArrayValue = dictionaryValue as? [T] {
for i in 0..<dictionaryArrayValue.count {
if dictionaryArrayValue[i] != propertyValue[i] {
return false
}
}

return true
return dictionaryArrayValue == propertyValue
}
}

Expand Down

0 comments on commit 2b6b68a

Please sign in to comment.